NodeChain EN
  • NodeChain
  • Learn
    • About NodeChain
    • Infrastructure
      • Connector
        • Wrapper APIs
      • Nodes
      • Startup script
    • License
    • Ecosystem
      • Supported APIs
      • Integrations
      • Acknowledgments
  • Develop
    • Quick start
      • Initial setup
      • Using command-line script
        • Commands
    • How-to
      • Run tests locally
      • Lint automatically with hooks
      • Integrate a new Blockchain/API
      • Connect to a public node
    • Wrapper API definition file
    • Contributing
  • Reference
    • API Reference
      • Admin
      • General Endpoints
      • REST Wrapper API
        • Bitcoin Cash
        • Bitcoin
        • Ethereum
          • ERC-20
      • JSON-RPC Wrapper API
        • Bitcoin Cash
        • Bitcoin
        • Ethereum
          • ERC-20
      • Real-Time Wrapper API
        • Bitcoin
        • Ethereum
Powered by GitBook
On this page
  1. Reference
  2. API Reference
  3. REST Wrapper API

Bitcoin Cash

Bitcoin cash endpoints

PreviousREST Wrapper APINextBitcoin

Last updated 3 years ago

Supported methods for Bitcoin Cash. Please note that to use these methods you must specify both the API token, bch in this case, and the network on which you want to make the call. For example, if you want to know the balance of a Bitcoin Cash address in the main network, the corresponding endpoint is as follows: http://server/bch/mainnet/getAddressBalance

  • POSTReturn the balance of any address
  • POSTReturn the balance of an array of addresses
  • POSTReturn the transaction history of any address
  • POSTReturn the transaction history of the given addresses
  • POSTReturns latest block hash and index
  • POSTReturns the information of any block giving its hash
  • POSTReturns the information of any block giving its height
  • POSTReturns if blockchain is syncing
  • POSTReturns the information of any transaction
  • POSTReturns the information of an array of transactions
  • POSTWatch an address. Everytime the address changes, a http POST is sent to the URL.
  • POSTReturns the number of pending or confirmed transactions an address has made
  • POSTReturns the number of pending or confirmed transactions several addresses have made
  • POSTEstimate fee by confirmations
  • POSTReturns the UTXO list of any address
  • POSTReturns the UTXO list of the given addresses
  • POSTReturns transaction
  • POSTBroadcasts a transaction to the network

Return the balance of any address

post

Return the balance of any address

Body
addressstringRequired

Bitcoin Cash address

Example: tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp
Responses
200
Successful response
application/json
post
POST /getAddressBalance HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 56

{
  "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp"
}
200

Successful response

{
  "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
  "balance": {
    "confirmed": "10000",
    "unconfirmed": "0"
  }
}

Return the balance of an array of addresses

post

Return the balance of an array of addresses

Body
addressesstring[]Required

Bitcoin Cash address

Example: tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp
Responses
200
Successful response
application/json
post
POST /getAddressesBalance HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 60

{
  "addresses": [
    "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp"
  ]
}
200

Successful response

[
  {
    "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
    "balance": {
      "confirmed": "10000",
      "unconfirmed": "0"
    }
  }
]

Return the transaction history of any address

post

Return the transaction history of any address

Body
addressstringRequired

Bitcoin Cash address

Example: tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp
Responses
200
Successful response
application/json
post
POST /getAddressHistory HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 56

{
  "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp"
}
200

Successful response

{
  "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
  "txHashes": [
    "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435"
  ]
}

Return the transaction history of the given addresses

post

Return the transaction history of the given addresses

Body
addressesstring[]Required

Bitcoin Cash address

Example: tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp
Responses
200
Successful response
application/json
post
POST /getAddressesHistory HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 60

{
  "addresses": [
    "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp"
  ]
}
200

Successful response

[
  {
    "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
    "txHashes": [
      "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435"
    ]
  }
]

Returns latest block hash and index

post

Returns latest block hash and index

Body
objectOptional
Responses
200Success
application/json
post
POST /getHeight HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "latestBlockHash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
  "latestBlockIndex": "1"
}

Returns the information of any block giving its hash

post

Returns the information of any block giving its hash. If verbosity is 0, it returns a string that is serialized, hex-encoded data for block hash. If verbosity is 1, it returns an object with information about the block. If verbosity is 2, it returns an Object with information about the block and each transaction

Body
blockHashstringRequired

Bitcoin block hash

Example: 217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d
verbosityinteger · enumOptional

Level of information returned

Default: 2Example: 0Possible values:
Responses
200Success
application/json
post
POST /getBlockByHash HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 94

{
  "blockHash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
  "verbosity": 0
}
200Success
{
  "block": {
    "hash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
    "previousblockhash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
    "nextblockhash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
    "height": 1,
    "nonce": 1,
    "nTx": 123,
    "confirmations": "5",
    "weight": 13123,
    "version": 1,
    "versionHex": "0x1",
    "strippedsize": 54354,
    "bits": "207fffff",
    "difficulty": 4.656542373906925e-10,
    "chainwork": "0000000000000000000000000000000000000000000000000000000000000e9e",
    "time": 1641234640,
    "mediantime": 1641234640,
    "txs": [
      {
        "hash": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435",
        "version": 1,
        "txid": "e8966afcca05dfe8e2fa282658835dcfa9e07eb5ea4eef041fd52dfd7d324992",
        "hex": "020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff05024e070101ffffffff025fa0120000000000160014816e2d40fa18229712228743990670f1f8e0a9fd0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000",
        "size": 54354,
        "vsize": 54354,
        "weight": 13123,
        "locktime": 0,
        "blockHash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
        "confirmations": "5",
        "blockTime": 1641234640,
        "time": 1641234640,
        "vin": {
          "txid": "e8966afcca05dfe8e2fa282658835dcfa9e07eb5ea4eef041fd52dfd7d324992",
          "vout": 0,
          "sequence": 4294967293,
          "scriptSig": {
            "asm": "",
            "hex": ""
          },
          "txinWitness": [
            "30440220736e93615d002848553e4db94331a7a8a7a1e46531af7c6bec8fcbf6ec2d5017022024ef3164704f850a60b96f1bb680903c602537b2b30b6ba9c941db96781626c501",
            "023b43d1a6879cc98325d4c79e9169fd5ddaa7f964626c297be3c8e8fdca4d8bc0"
          ]
        },
        "vout": {
          "value": "100000",
          "n": 1,
          "scriptPubKey": {
            "asm": "0 816e2d40fa18229712228743990670f1f8e0a9fd",
            "hex": "0014816e2d40fa18229712228743990670f1f8e0a9fd",
            "reqSigs": 1,
            "type": "witness_v0_keyhash",
            "addresses": [
              "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp"
            ]
          }
        }
      }
    ]
  }
}

Returns the information of any block giving its height

post

Returns the information of any block giving its height. If verbosity is 0, it returns a string that is serialized, hex-encoded data for block hash. If verbosity is 1, it returns an object with information about the block. If verbosity is 2, it returns an Object with information about the block and each transaction

Body
blockNumberstringRequired

Bitcoin block height. Supports the param latest to get the last block of the chain. The param can be in decimal or hexadecimal format

Example: 1
verbosityinteger · enumOptional

Level of information returned

Default: 2Example: 0Possible values:
Responses
200Success
application/json
post
POST /getBlockByNumber HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "blockNumber": "1",
  "verbosity": 0
}
200Success
{
  "block": {
    "hash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
    "previousblockhash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
    "nextblockhash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
    "height": 1,
    "nonce": 1,
    "nTx": 123,
    "confirmations": "5",
    "weight": 13123,
    "version": 1,
    "versionHex": "0x1",
    "strippedsize": 54354,
    "bits": "207fffff",
    "difficulty": 4.656542373906925e-10,
    "chainwork": "0000000000000000000000000000000000000000000000000000000000000e9e",
    "time": 1641234640,
    "mediantime": 1641234640,
    "txs": [
      {
        "hash": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435",
        "version": 1,
        "txid": "e8966afcca05dfe8e2fa282658835dcfa9e07eb5ea4eef041fd52dfd7d324992",
        "hex": "020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff05024e070101ffffffff025fa0120000000000160014816e2d40fa18229712228743990670f1f8e0a9fd0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000",
        "size": 54354,
        "vsize": 54354,
        "weight": 13123,
        "locktime": 0,
        "blockHash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
        "confirmations": "5",
        "blockTime": 1641234640,
        "time": 1641234640,
        "vin": {
          "txid": "e8966afcca05dfe8e2fa282658835dcfa9e07eb5ea4eef041fd52dfd7d324992",
          "vout": 0,
          "sequence": 4294967293,
          "scriptSig": {
            "asm": "",
            "hex": ""
          },
          "txinWitness": [
            "30440220736e93615d002848553e4db94331a7a8a7a1e46531af7c6bec8fcbf6ec2d5017022024ef3164704f850a60b96f1bb680903c602537b2b30b6ba9c941db96781626c501",
            "023b43d1a6879cc98325d4c79e9169fd5ddaa7f964626c297be3c8e8fdca4d8bc0"
          ]
        },
        "vout": {
          "value": "100000",
          "n": 1,
          "scriptPubKey": {
            "asm": "0 816e2d40fa18229712228743990670f1f8e0a9fd",
            "hex": "0014816e2d40fa18229712228743990670f1f8e0a9fd",
            "reqSigs": 1,
            "type": "witness_v0_keyhash",
            "addresses": [
              "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp"
            ]
          }
        }
      }
    ]
  }
}

Returns if blockchain is syncing

post

Returns True if blocks are syncing and returns False if theres no synchronization or is fully sychronize

Body
objectOptional
Responses
200Success
application/json
post
POST /syncing HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 2

{}
200Success
{
  "syncing": false,
  "syncPercentage": "6.905658629231632%",
  "currentBlockIndex": "1",
  "latestBlockIndex": "1"
}

Returns the information of any transaction

post

Returns the information of any transaction, giving its transaction hash

Body
txHashstringRequired

Bitcoin Cash transaction hash

Example: b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435
Responses
200
Response succesfull
application/json
post
POST /getTransaction HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 77

{
  "txHash": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435"
}
200

Response succesfull

{
  "transaction": {
    "txId": "e8966afcca05dfe8e2fa282658835dcfa9e07eb5ea4eef041fd52dfd7d324992",
    "txHash": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435",
    "blockNumber": "3",
    "fee": "1000",
    "inputs": {
      "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
      "amount": "text"
    },
    "outputs": {
      "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
      "amount": "text"
    },
    "data": {
      "hash": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435",
      "version": 1,
      "txid": "e8966afcca05dfe8e2fa282658835dcfa9e07eb5ea4eef041fd52dfd7d324992",
      "hex": "020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff05024e070101ffffffff025fa0120000000000160014816e2d40fa18229712228743990670f1f8e0a9fd0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000",
      "size": 54354,
      "vsize": 54354,
      "weight": 13123,
      "locktime": 0,
      "blockHash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
      "confirmations": "5",
      "blockTime": 1641234640,
      "time": 1641234640,
      "vin": {
        "txid": "e8966afcca05dfe8e2fa282658835dcfa9e07eb5ea4eef041fd52dfd7d324992",
        "vout": 0,
        "sequence": 4294967293,
        "scriptSig": {
          "asm": "",
          "hex": ""
        },
        "txinWitness": [
          "30440220736e93615d002848553e4db94331a7a8a7a1e46531af7c6bec8fcbf6ec2d5017022024ef3164704f850a60b96f1bb680903c602537b2b30b6ba9c941db96781626c501",
          "023b43d1a6879cc98325d4c79e9169fd5ddaa7f964626c297be3c8e8fdca4d8bc0"
        ]
      },
      "vout": {
        "value": "100000",
        "n": 1,
        "scriptPubKey": {
          "asm": "0 816e2d40fa18229712228743990670f1f8e0a9fd",
          "hex": "0014816e2d40fa18229712228743990670f1f8e0a9fd",
          "reqSigs": 1,
          "type": "witness_v0_keyhash",
          "addresses": [
            "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp"
          ]
        }
      }
    }
  }
}

Returns the information of an array of transactions

post

Returns the information of an array of transaction, giving its transactions hash

Body
txHashesstring[]Optional

Bitcoin Cash transaction hash

Example: b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435
Responses
200
Response succesfull
application/json
post
POST /getTransactions HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 81

{
  "txHashes": [
    "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435"
  ]
}
200

Response succesfull

{
  "transactions": [
    {
      "txId": "e8966afcca05dfe8e2fa282658835dcfa9e07eb5ea4eef041fd52dfd7d324992",
      "txHash": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435",
      "blockNumber": "3",
      "fee": "1000",
      "inputs": {
        "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
        "amount": "text"
      },
      "outputs": {
        "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
        "amount": "text"
      },
      "data": {
        "hash": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435",
        "version": 1,
        "txid": "e8966afcca05dfe8e2fa282658835dcfa9e07eb5ea4eef041fd52dfd7d324992",
        "hex": "020000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff05024e070101ffffffff025fa0120000000000160014816e2d40fa18229712228743990670f1f8e0a9fd0000000000000000266a24aa21a9ede2f61c3f71d1defd3fa999dfa36953755c690689799962b48bebd836974e8cf90120000000000000000000000000000000000000000000000000000000000000000000000000",
        "size": 54354,
        "vsize": 54354,
        "weight": 13123,
        "locktime": 0,
        "blockHash": "217ba61bc3921764a218f4607a8905108d2dfa4bb8e6e10af61d06e279fa069d",
        "confirmations": "5",
        "blockTime": 1641234640,
        "time": 1641234640,
        "vin": {
          "txid": "e8966afcca05dfe8e2fa282658835dcfa9e07eb5ea4eef041fd52dfd7d324992",
          "vout": 0,
          "sequence": 4294967293,
          "scriptSig": {
            "asm": "",
            "hex": ""
          },
          "txinWitness": [
            "30440220736e93615d002848553e4db94331a7a8a7a1e46531af7c6bec8fcbf6ec2d5017022024ef3164704f850a60b96f1bb680903c602537b2b30b6ba9c941db96781626c501",
            "023b43d1a6879cc98325d4c79e9169fd5ddaa7f964626c297be3c8e8fdca4d8bc0"
          ]
        },
        "vout": {
          "value": "100000",
          "n": 1,
          "scriptPubKey": {
            "asm": "0 816e2d40fa18229712228743990670f1f8e0a9fd",
            "hex": "0014816e2d40fa18229712228743990670f1f8e0a9fd",
            "reqSigs": 1,
            "type": "witness_v0_keyhash",
            "addresses": [
              "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp"
            ]
          }
        }
      }
    }
  ]
}

Watch an address. Everytime the address changes, a http POST is sent to the URL.

post

Watch an address. Everytime the address changes, a http POST is sent to the URL.

Body
addressstringRequired

Bitcoin Cash address

Example: tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp
callBackEndpointstringRequired

Endpoint to make callback

Example: http://localhost:8080/path
Responses
200
Response succesfull
application/json
post
POST /notify HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 104

{
  "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
  "callBackEndpoint": "http://localhost:8080/path"
}
200

Response succesfull

{
  "success": true
}

Returns the number of pending or confirmed transactions an address has made

post

Returns the number of pending or confirmed transactions an address has made

Body
addressstringRequired

Bitcoin Cash address

Example: tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp
pendingbooleanRequired

Get pending or confirmed transactions

Example: true
Responses
200
Response succesfull
application/json
post
POST /getAddressTransactionCount HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 71

{
  "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
  "pending": true
}
200

Response succesfull

{
  "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
  "transactionCount": "12"
}

Returns the number of pending or confirmed transactions several addresses have made

post

Returns the number of pending or confirmed transactions several addresses have made

Body
Responses
200
Response succesfull
application/json
post
POST /getAddressesTransactionCount HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 87

{
  "addresses": [
    {
      "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
      "pending": true
    }
  ]
}
200

Response succesfull

[
  {
    "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
    "transactionCount": "12"
  }
]

Estimate fee by confirmations

post

Estimates the approximate fee per kilobyte needed for a transaction to begin confirmation within "confirmations" blocks if possible and return the number of blocks for which the estimate is valid.

Body
confirmationsstringRequired

Number of confirmations, or -1 if the block is not on the main chain

Example: 5
Responses
200
Response succesfull
application/json
post
POST /getFeePerByte HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "confirmations": "5"
}
200

Response succesfull

{
  "feePerByte": "1000"
}

Returns the UTXO list of any address

post

Returns the UTXO list of any address

Body
addressstringRequired

Bitcoin Cash address

Example: tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp
Responses
200
Successful response
application/json
post
POST /getAddressUnspent HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 56

{
  "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp"
}
200

Successful response

[
  {
    "txHash": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435",
    "vout": "0",
    "status": {
      "confirmed": true,
      "blockHeight": "1"
    },
    "value": "100000"
  }
]

Returns the UTXO list of the given addresses

post

Returns the UTXO list of the given addresses

Body
string[]Optional

Bitcoin Cash address

Example: tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp
Responses
200
Successful response
application/json
post
POST /getAddressesUnspent HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 46

[
  "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp"
]
200

Successful response

[
  {
    "address": "tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp",
    "outputs": [
      {
        "txHash": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435",
        "vout": "0",
        "status": {
          "confirmed": true,
          "blockHeight": "1"
        },
        "value": "100000"
      }
    ]
  }
]

Returns transaction

post

Returns raw schema of any transaction. If verbosity is set to true, transaction object is returned, otherwise raw transaction will be returned

Body
txHashstringRequired

Bitcoin Cash transaction hash

Example: b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435
verbositybooleanOptional

Level of information returned

Default: falseExample: false
Responses
200
Response succesfull
application/json
post
POST /getTransactionHex HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 95

{
  "txHash": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435",
  "verbosity": false
}
200

Response succesfull

{
  "rawTransaction": "01000000000101c0d72dcba53996705fff03465f23b594ec934c29a7645045abe07385a58470a101000000171600140e2c5153cf335a150df44013c4572cd52a70aa8bfdffffff020100000000000000165114391234a573b02814f03ff59673c86b68c2869537091839000000000017a914004863ca1a414c0a174b2666bf067c69524aabd4870247304402201cc95f4683cf0fc46923b1a7f78454adbd57150268ab4960efd3c7df6fc83e22022035917f815bfd80052812b8b1559d314f2459e5876abe9bf1b36f8d4e0dda6e0e012102c379336fce4796dc9bbaa953ef5003e070853b2bf53bdf00b9cfb83e3e1ef84f00000000"
}

Broadcasts a transaction to the network

post

Broadcasts a transaction to the network

Body
rawTransactionstringRequired

Raw transaction (Hex format)

Example: 01000000000101c0d72dcba53996705fff03465f23b594ec934c29a7645045abe07385a58470a101000000171600140e2c5153cf335a150df44013c4572cd52a70aa8bfdffffff020100000000000000165114391234a573b02814f03ff59673c86b68c2869537091839000000000017a914004863ca1a414c0a174b2666bf067c69524aabd4870247304402201cc95f4683cf0fc46923b1a7f78454adbd57150268ab4960efd3c7df6fc83e22022035917f815bfd80052812b8b1559d314f2459e5876abe9bf1b36f8d4e0dda6e0e012102c379336fce4796dc9bbaa953ef5003e070853b2bf53bdf00b9cfb83e3e1ef84f00000000
Responses
200
Response succesfull
application/json
post
POST /broadcastTransaction HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 513

{
  "rawTransaction": "01000000000101c0d72dcba53996705fff03465f23b594ec934c29a7645045abe07385a58470a101000000171600140e2c5153cf335a150df44013c4572cd52a70aa8bfdffffff020100000000000000165114391234a573b02814f03ff59673c86b68c2869537091839000000000017a914004863ca1a414c0a174b2666bf067c69524aabd4870247304402201cc95f4683cf0fc46923b1a7f78454adbd57150268ab4960efd3c7df6fc83e22022035917f815bfd80052812b8b1559d314f2459e5876abe9bf1b36f8d4e0dda6e0e012102c379336fce4796dc9bbaa953ef5003e070853b2bf53bdf00b9cfb83e3e1ef84f00000000"
}
200

Response succesfull

{
  "broadcasted": "b66d096bcb068888d4a6987870647ba9c9d2f1da9e360ddafc73efe1f26f2435"
}