Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: vnanhtuan on November 25, 2017, 10:47:59 AM



Title: Create new Transaction with wallet by BlockCypher
Post by: vnanhtuan on November 25, 2017, 10:47:59 AM
I have a problem with creating new transaction by wallet.
I created a wallet with 3 addresses, after call API:
Call: https://api.blockcypher.com/v1/btc/test3/wallets/alice/addresses?token=MYTOKEN
Response:
{
  "token": "6898c******************",
  "name": "alice",
  "addresses": [
    "mxReqU96ndChteqeoY5oh8fdaP8hBd2xFp",
    "n18ktQ4BVQkB5VhL26vxbkXcFYGqo6SgSf",
    "mo6dzyjhJKQcD9VjBzbeUWNdckuXzRUXqE"
  ]
}

When I create a transaction with wallet, I received an Error: "Unable to find wallet alice"
Call: https://api.blockcypher.com/v1/btc/test3/txs/new
This is my parameters:
{
   "inputs": [
      {
         "wallet_name": "alice",
         "wallet_token":"MYTOKEN"
      }
   ],
   "outputs": [
      {
         "addresses": ["2N8hwP1WmJrFF5QWABn38y63uYLhnJYJYTF"],
         "value": 10000000
      }
   ]
}

Please help me with this issues. Thank you so much