Skip to main content

BTC Category

tokenviewLess than 1 minute

BTC Category

BTC Category: BTC、BCH、BCHSV、NEO、DASH、LTC、DOGE、ETC、RVN、PIVX、NMC、RDD、XZC、NRG、SYS、NEBL、VTC、VITAE、FTC、GIN、HC、CRW、GAME、PART、EMC、UNO、XSN、WGR、EMC2、BCI、BLK、CLAM、XVG、LUX、SMART、DCR、BAY、FLO、NAV、STRAT、XMY、BCA、MONA、DGBLCC

Send RawTransaction

POST https://services.tokenview.io/vipapi/onchainwallet/{lowercase-coin-abbr}?apikey={apikey}

Parameters

Apply to: Send a transaction that has been signed and sent into the block.

The POST request BODY is text in JSON format, you may just replace the "hexadecimal text" with a packaged transaction as follows.

{"jsonrpc": "2.0", "id":"viewtoken", "method": "sendrawtransaction", "params": ["hexadecimal text"] }

Correct answer format

{"result":"tx hash","jsonrpc": "2.0", "id":"viewtoken"}

Error answer format

{"result":null,"error":{"error code":,"message":"error msg"},"jsonrpc": "2.0", "id":"viewtoken"}

Request

curl --location --globoff 'https://services.tokenview.io/vipapi/onchainwallet/btc?apikey={apikey}' \
--header 'Content-Type: application/json' \
--data '{
  "jsonrpc" : "1.0",
  "id" : "viewtoken",
  "method" : "sendrawtransaction",
  "params" : [
    "010000000525d9f6f668c50453aefecf0987ad3a653eab7b07b3b58c9a8b4b7e6f246c046f010000006b483045022100859574c6c019eaf9beea3820858680a95603096fa022c0e47dc6b2ccf762bb510220661d3983170201176cf140285d627c8a8b1fcda151decf741a143a3981e2de5f01210288521c776e00498c268215d12288b2b1ec87ba9b9bcee570df8b3da038d01f34ffffffff5dd234c90a2202d90248fa66dcb05c2adc4d35df3cf8f30b6d709cb478bbfa1c020000006a47304402200fc950e4bfa6e8e56b94a44b3340cf6351b3553e04cf31a6ca3890764a6529da02204d06ae1bb9bd21c686539066bcb5fcc9787eb335176363ab59ca672c8b4786a401210288521c776e00498c268215d12288b2b1ec87ba9b9bcee570df8b3da038d01f34ffffffff5cb87249591c5c9a2a95bf21dfdf873bcd1795d76eed4acf80dae66298d8d7d6020000006b483045022100816fe2dbbb14dbad0673273cdc5e2a1ec248b357784ec60d3cdda122bc2b77d00220671e69e11c7c84e2acfd8476c5a65f37668f35e2b07d6d734254bcba58f4d8be01210288521c776e00498c268215d12288b2b1ec87ba9b9bcee570df8b3da038d01f34ffffffff85428f1f9d0a3a9f6a4ceea7d651688b8fad9ad88bffef6b64306e8b54843655020000006b483045022100d859218e90f4249338adfc60cb6b66740f845db2c043b18a79e29a7efa202aa9022060d9135aac0b0ce58a900c4598c3df3b319971c7d0856caeb551e3962613a6ab01210288521c776e00498c268215d12288b2b1ec87ba9b9bcee570df8b3da038d01f34ffffffff579fc790109e0ccac7f61bd4642d8ac09a723150f0b3b2b178de6e387fb45cab010000006a4730440220209140447dabb3628ae213b069b047f810ee743ed819745e16ddad1a4530598a02200171c85d54003be6f903c9280268f05fab2c1d7fcc582aa55f340b6cc8718fec01210288521c776e00498c268215d12288b2b1ec87ba9b9bcee570df8b3da038d01f34ffffffff0258020000000000001976a9147e3f596889eb2c4666ea0823f05b0b7e0796192388ac2f020000000000001976a9143a05fb822a4954af7d868d133963856fa3b5d7de88ac00000000"
  ]
}'

Response

{"result":"6bd63389c5f210cd3c8fb823209fd060538139769098eb3f43e0e778aa7ad247","error":null,"id":"viewtoken"}

Last update: