BitcoinCash

Create BitcoinCash Client

PHP
PHP
use BlockSDK;
$blockSDK = new BlockSDK("YOU_TOKEN");
$bchClient = $blockSDK->createBitcoinCash();
or
$bchClient = BlockSDK::createBitcoinCash("YOU_TOKEN");

Object

TX

Name

Type

Content

txid

string

hash of the transaction.

hash

string

hash of the transaction.

size

int

size of the transaction.

version

char

version of the transaction.

vin

array[vin]

List of inputs into transaction

total_in

double

Total balance of transaction input

vout

array[vout]

List of outputs into transaction

total_out

double

Total balance of transaction output

in_count

int

Transaction input count

out_count

int

Transaction output count

fee

double

Transaction fee

fee_per_kb

double

Transaction fee per kb

locktime

int

If not 0, this tells when a transaction output is spendable.

block_hash

string

block hash including the transaction

block_height

int

block height including the transaction

time

int

The time contained in the block

confirmations

int

Transaction Confirmation Count

VIN

Name

Type

Content

txid

string

hash of the transaction

vout

int

the index of the output being redeemed from the origin transaction

scriptSig

object

signature script

addresses

array[string]

BitcoinCash Address

value

double

Amount used

VOUT

Name

Type

Content

value

double

Amount received

n

int

Output index

scriptPubKey

object

the public key script used to pay coins

addresses

array[string]

BitcoinCash Address

get
GetBlockChain

https://api.blocksdk.com/v1/bch/block
Request
Response
Request
Response
200: OK
Cake successfully retrieved.
{
"height":613543,
"bestblockhash":"00000000000000000040c5bf0562c1f23250d4250adc7dfe1b090956d55c22a5",
"prev_hash":"000000000000000002d6421daf0adc3b325292f37400506d02648d9018bfe14c",
"unconfirmed_count":585,
"low_fee_per_kb":0.00005,
"medium_fee_per_kb":0.00008,
"high_fee_per_kb":0.00008
}

Response

Name

Type

Content

height

int

number of most recent block.

bestblockhash

string

hash of most recent block.

prev_hash

string

Previous block hash of the most recent block

unconfirmed_count

int

Unconfirmed Transaction Count

low_fee_per_kb

double

Low Priority (7+ blocks)

medium_fee_per_kb

double

Medium Priority (3-6 blocks)

high_fee_per_kb

double

High Priority (1-2 blocks)

PHP
PHP
$blockChain = $bchClient->getBlockChain();

get
GetBlock

https://api.blocksdk.com/v1/bch/block/{block}
Request
Response
Request
Path Parameters
block
required
string
Block number or hash
Query Parameters
rawtx
optional
boolean
Get transaction details
limit
optional
number
Number of transactions to import
offset
optional
number
Transaction List Offset
Response
200: OK
{
"hash":"00000000000000000040c5bf0562c1f23250d4250adc7dfe1b090956d55c22a5",
"confirmations":1,
"height":613543,
"time":1576474675,
"tx":[...],
"tx_count":328,
"input_total":1093.54265824,
"input_count":556,
"out_total":1093.53638031,
"out_count":930,
"fee_per_kb":0.00004835,
"fee_total":0.00627793,
"generation":12.5,
"reward":12.50627793,
"size":129834,
"prev_hash":"000000000000000002d6421daf0adc3b325292f37400506d02648d9018bfe14c",
"next_hash":""
}

Response

Name

Type

Content

hash

string

hash of the block

confirmations

int

Block Confirmation Count

height

int

the block number

time

int

The date and time at which a block is mined.

tx

array

Transaction contained in the block

tx_count

int

The number of transactions contained in the block

input_total

double

Total input balance of transactions contained in the block

input_count

int

The number of inputs for all transactions in the block

out_total

double

Total output balance of transactions contained in the block

out_count

int

The number of outputs for all transactions in the block

fee_per_kb

double

Kb unit fee for all transactions in a block

fee_total

double

Total transaction fee

generation

double

Mining Compensation Including Fees

reward

double

Block Mining Reward

size

int

integer the size of this block in bytes.

prev_hash

string

Previous block hash

next_hash

string

Next block hash

PHP
PHP
$block = $bchClient->getBlock([
"block" => 600125,
"rawtx" => true,
"offset" => 0,
"limit" => 10
]);

get
GetMemPool

https://api.blocksdk.com/v1/bch/mempool
Request
Response
Request
Query Parameters
rawtx
optional
boolean
Get transaction details
offset
optional
number
Transaction List Offset
limit
optional
number
Number of transactions to import
Response
200: OK
{
"unconfirmed_count" : 10,
"tx" : {...}
}
PHP
PHP
$pool = $bchClient->getMemPool([
"rawtx" => true,
"offset" => 0,
"limit" => 10
]);

get
GetAddressInfo

https://api.blocksdk.com/v1/bch/address/{address}
Request
Response
Request
Path Parameters
address
required
string
BitcoinCash Address
Query Parameters
reverse
optional
boolean
Reverse transaction information
rawtx
optional
boolean
Get transaction details
offset
optional
number
Transaction List Offset
limit
optional
number
Number of Transaction to import
Response
200: OK
{
"cash_address":"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8",
"legacy_address":"18Crf5jR5P9vryyjqPWJh1TZDTGXajcUgr",
"tx":[...],
"tx_count":3348,
"received_count":119,
"received_total":0.39569261,
"received_unconfirmed":0,
"spent_count":3229,
"spent_total":0.3913941200000001,
"spent_unconfirmed":0,
"balance":0.00429849,
"unconfirmed_count":0,
"first_time":1575514420,
"last_time":0
}

Response

Name

Type

Content

address

string

BitcoinCash Address

tx

array

Transaction originated from address

tx_count

int

The number of transactions that occurred at the address

received_count

int

The number of transactions received from the address

received_total

double

Transaction amount received from the address

received_unconfirmed

double

Transaction amount not included in the block received from the address

spent_count

int

The number of transactions spent from the address

spent_total

double

Transaction amount spent from the address

spent_unconfirmed

double

Transaction amount not included in the block spent from the address

balance

double

Remaining balance

unconfirmed_count

int

Transaction count not included in address block

first_time

int

First Deal Creation Time at Address

last_time

int

Last transaction creation time from address

PHP
PHP
$addressInfo = $bchClient->getAddressInfo([
"address" => "qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8",
"rawtx" => true,
"reverse" => true,
"offset" => 0,
"limit" => 10
]);

get
GetAddressBalance

https://api.blocksdk.com/v1/bch/address/{address}/balance
Request
Response
Request
Path Parameters
address
required
string
BitcoinCash Address
Response
200: OK
{
"address":"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8",
"balance":0.00429849,
"unconfirmed_balance":"0.00000000"
}

Response

Name

Type

Content

address

string

BitcoinCash Address

balance

double

Balance of the address

unconfirmed_balance

double

Balance of transactions not included in the block of addresses

PHP
PHP
$balance = $bchClient->getAddressBalance([
"address" => "14cK6zRk4zdfbrYG5srA69hCngkV7zDzbt"
]);

get
ListWallet

https://api.blocksdk.com/v1/bch/wallet
Request
Response
Request
Headers
x-api-key
required
string
API authentication key
Query Parameters
offset
optional
number
Number of Address to import
limit
optional
number
Address List offset
Response
200: OK
{
"items" : [
{
"id":31,
"name":"PLum6KG5bbbLqPovFT5vTCTtPME4Zaaaaaa",
"created_at":"2019-07-16 08:14:21"
},
{
"id":32,
"name":"2ypjOjJhbbb3qBiyPhEHpDouyKDt8bbbbb",
"created_at":"2019-07-16 08:15:56"
}
]
}

Response

Name

Type

Content

id

int

Unique ID of the wallet

name

string

Name specified when creating wallet

created_at

datetime

Date Wallet Was Created

PHP
PHP
$listWallet = $bchClient->listWallet([
"offset" => 0,
"limit" => 10
])

post
CreateWallet

https://api.blocksdk.com/v1/bch/wallet
Request
Response
Request
Headers
x-api-key
required
string
API authentication key
Body Parameters
name
optional
string
Wallet Name
Response
201: Created
{
"id": 38,
"name": "test",
"seed_wif": "abcdefg"
}

Response

Name

Type

Content

id

id

Unique ID of the wallet

name

string

Wallet name

seed_wif

string

Seed private key of wallet(This key is not stored on the blocksdk server)

PHP
PHP
$wallet = $bchClient->createWallet([
"name" => "test"
]);

post
LoadWallet

https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/load
Load your wallet. The loaded wallet does not require seed_wif when using CreateAddress,SendToAddress,SendMany ※It is not recommended to use
Request
Response
Request
Path Parameters
wallet_id
required
number
Wallet Unique ID
Headers
x-api-key
required
string
API authentication key
Body Parameters
password
required
string
Only available if the wallet is loaded.
seed_wif
required
string
Wallet seed private key
Response
201: Created
[]
PHP
PHP
$load = $bchClient->loadWallet([
"wallet_id" => 999,
"seed_wif" => "abcdefg",
"password" => "abcdefg"
]);

post
UnloadWallet

https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/unload
Request
Response
Request
Path Parameters
wallet_id
required
number
Wallet Unique ID
Headers
x-api-key
required
string
API authentication key
Response
201: Created
[]
PHP
PHP
$unload = $bchClient->unloadWallet([
"wallet_id" => 999
]);

get
GetWalletBalance

https://api.blocksdk.com/v1/bch/{wallet_id}/balance
Request
Response
Request
Path Parameters
wallet_id
optional
number
Wallet Unique ID
Headers
x-api-key
required
string
API authentication key
Response
200: OK
{
"balance":0,
"unconfirmed_balance":0
}

Response

Name

Type

Content

balance

double

Wallet Balance

unconfirmed_balance

double

Balance of transactions not included in the block of wallet

PHP
PHP
$walletBalance = $bchClient->getWalletBalance([
"wallet_id" => 999
]);

get
ListWalletAddress

https://api.blocksdk.com/v1/bch/wallet/{wallet_td}/address
Request
Response
Request
Path Parameters
wallet_id
required
string
Wallet Unique ID
Headers
x-api-key
required
string
API authentication key
Query Parameters
offset
optional
string
Number of Address to import
limit
optional
string
Number of transactions to import
address
optional
string
Search by this address
hdkeypath
optional
string
Search by this hdkeypath
Response
200: OK
{
"items" : {
{
"address":"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8",
"hdkeypath":"m\/0'\/0'\/0'"
},
{
"address":"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8",
"hdkeypath":"m\/0'\/0'\/1'"
}
}
}

Response

Name

Type

Content

address

string

Bitcoin Address

hdkeypath

string

The HD keypath if the key is HD and available

PHP
PHP
$listAddress = $bchClient->listWalletAddress([
"wallet_id" => 999,
"offset" => 0,
"limit" => 10
]);

post
CreateWalletAddress

https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/address
Request
Response
Request
Path Parameters
wallet_id
required
string
Wallet Unique ID
Headers
x-api-key
required
string
API authentication key
Body Parameters
password
optional
string
Only available if the wallet is loaded.
seed_wif
optional
string
Seed private key issued at wallet creation(Not necessary if your wallet is loaded)
Response
201: Created
{
"address": "qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8",
"hdkeypath": "m/0'/0'/0'"
}

Response

Name

Type

Content

address

string

Bitcoin Address

hdkeypath

string

The HD keypath if the key is HD and available

PHP
PHP
$address = $bchClient->createWalletAddress([
"wallet_id" => 999,
"seed_wif" => "abcdefg"
]);
or
$address = $bchClient->createWalletAddress([
"wallet_id" => 999,
"password" => "abcdefg"
]);

get
GetWalletTx

https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/transaction
Request
Response
Request
Path Parameters
wallet_id
required
string
Wallet Unique ID
Headers
x-api-key
required
string
API authentication key
Body Parameters
category
optional
string
Transaction type to import(all,receive,spent,unspent)
order
optional
string
Sort deals to import(desc,asc)
offset
optional
number
Number of Address to import
limit
optional
number
Address List offset
Response
200: OK
{
"items" : {
{
"txid":"ffc243f17d737cb04ad336b4483159fdb13189b267769529d4875f502be27c9b",
"category":"receive",
"address":"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8",
"amount":0.0001,
"confirmations":0
},
{
"txid":"dabe93e37d25ad1d9c7643a68cbffccc0df735178aea655f0d1592557467be8b",
"category":"receive",
"address":"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8",
"amount":0.0001,
"confirmations":0
}
}
}

Response

Name

Type

Content

txid

string

Transaction hash

category

string

receive or spent

address

string

Address where the transaction occurred

amount

double

Transaction balance amount

confirmations

int

Transaction Confirmation Count

PHP
PHP
$walletTx = $bchClient->getWalletTx([
"wallet_id" => 999,
"category" => "all",
"order" => "desc",
"offset" => 0,
"limit" => 10
]);

post
SendToAddress

https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/sendtoaddress
Request
Response
Request
Path Parameters
wallet_id
required
string
Wallet Unique ID
Headers
x-api-key
required
string
API authentication key
Body Parameters
subtractfeefromamount
optional
boolean
The fee will be deducted from the amount being sent. The recipient will receive less coins than you enter in the amount field.
password
optional
string
Only available if the wallet is loaded.
kbfee
optional
number
Fee per kilobytes to be used for transactions
seed_wif
optional
string
Seed private key issued at wallet creation(Not necessary if your wallet is loaded)
amount
required
number
balance to be sent
address
required
string
BitcoinCash Address to Receive
Response
201: Created
{
"txid":"dabe93e37d25ad1d9c7643a68cbffccc0df735178aea655f0d1592557467be8b",
"hash":"dabe93e37d25ad1d9c7643a68cbffccc0df735178aea655f0d1592557467be8b",
"version":1,
"size":224,
"vin":[
{
"txid":"159d65808fa552f0bf04626e6a98094de22d1219ad0e9d28a8b8a7f89c4dedd2",
"vout":0,
"scriptSig":{
"asm":"3045022100db441c8f41fbf96fbcb11f1b2a1760b9d6ca03a73093a7df346e983dbaa1dec102204813b339c85d71d5e130328e2be15fa609966a6a1049d095492315d3c4a85ee241 045c5c1b214e3269883a2fc2d9083856be3652e102c3eeae533cec2396e055d292d3a1aebf39b1b8a4d44626b8dc945eb7617b2319bed261152a49c4cc1bc38264",
"hex":"483045022100db441c8f41fbf96fbcb11f1b2a1760b9d6ca03a73093a7df346e983dbaa1dec102204813b339c85d71d5e130328e2be15fa609966a6a1049d095492315d3c4a85ee24141045c5c1b214e3269883a2fc2d9083856be3652e102c3eeae533cec2396e055d292d3a1aebf39b1b8a4d44626b8dc945eb7617b2319bed261152a49c4cc1bc38264"
},
"addresses":["qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8"],
"value":0.00084820
}
],
"total_in":0.00084820,
"vout":[
{
"value":0.00084590,
"n":0,
"scriptPubKey":{
"type":"pubkeyhash",
"asm":"OP_DUP OP_HASH160 4f06e84433e5d8d4c050ed57636dd651d9ecc77e OP_EQUALVERIFY OP_CHECKSIG",
"hex":"76a9144f06e84433e5d8d4c050ed57636dd651d9ecc77e88ac"
},
"addresses":["qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8"]
}
],
"total_out":0.00084590,
"in_count":1,
"out_count":1,
"fee":0.00000230,
"fee_per_kb":0.00001027,
"locktime":0,
"block_hash":"000000000000000002c0be4e85a5f470e36615b1b393cfb35c11de98e112c80d",
"block_height":613544,
"time":1576477136,
"confirmations":3
}

Response

Return Tx on Success

PHP
PHP
$tx = $bchClient->sendToAddress([
"wallet_id" => 999,
"seed_wif" => "abcdefg",
"address" => "qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8",
"amount" => 0.1,
"kbfee" => 0.0001
])
or
$tx = $bchClient->sendToAddress([
"wallet_id" => 999,
"password" => "abcdefg",
"address" => "qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8",
"amount" => 0.1,
"kbfee" => 0.0001
])

post
SendMany

https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/sendmany
Request
Response
Request
Path Parameters
wallet_id
required
string
Wallet Unique ID
Headers
x-api-key
required
string
API authentication key
Body Parameters
subtractfeefromamount
optional
boolean
The fee will be deducted from the amount being sent. The recipient will receive less coins than you enter in the amount field.
password
optional
string
Only available if the wallet is loaded.
to
required
object
Receiving Information
kbfee
optional
number
Fee per kilobytes to be used for transactions
seed_wif
optional
string
Seed private key issued at wallet creation(Not necessary if your wallet is loaded)
Response
201: Created
{
"txid":"dabe93e37d25ad1d9c7643a68cbffccc0df735178aea655f0d1592557467be8b",
"hash":"dabe93e37d25ad1d9c7643a68cbffccc0df735178aea655f0d1592557467be8b",
"version":1,
"size":224,
"vin":[
{
"txid":"159d65808fa552f0bf04626e6a98094de22d1219ad0e9d28a8b8a7f89c4dedd2",
"vout":0,
"scriptSig":{
"asm":"3045022100db441c8f41fbf96fbcb11f1b2a1760b9d6ca03a73093a7df346e983dbaa1dec102204813b339c85d71d5e130328e2be15fa609966a6a1049d095492315d3c4a85ee241 045c5c1b214e3269883a2fc2d9083856be3652e102c3eeae533cec2396e055d292d3a1aebf39b1b8a4d44626b8dc945eb7617b2319bed261152a49c4cc1bc38264",
"hex":"483045022100db441c8f41fbf96fbcb11f1b2a1760b9d6ca03a73093a7df346e983dbaa1dec102204813b339c85d71d5e130328e2be15fa609966a6a1049d095492315d3c4a85ee24141045c5c1b214e3269883a2fc2d9083856be3652e102c3eeae533cec2396e055d292d3a1aebf39b1b8a4d44626b8dc945eb7617b2319bed261152a49c4cc1bc38264"
},
"addresses":["qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8"],
"value":0.00084820
}
],
"total_in":0.00084820,
"vout":[
{
"value":0.00084590,
"n":0,
"scriptPubKey":{
"type":"pubkeyhash",
"asm":"OP_DUP OP_HASH160 4f06e84433e5d8d4c050ed57636dd651d9ecc77e OP_EQUALVERIFY OP_CHECKSIG",
"hex":"76a9144f06e84433e5d8d4c050ed57636dd651d9ecc77e88ac"
},
"addresses":["qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8"]
}
],
"total_out":0.00084590,
"in_count":1,
"out_count":1,
"fee":0.00000230,
"fee_per_kb":0.00001027,
"locktime":0,
"block_hash":"000000000000000002c0be4e85a5f470e36615b1b393cfb35c11de98e112c80d",
"block_height":613544,
"time":1576477136,
"confirmations":3
}

Example PostData

{
"to":{
"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8":0.0001,
"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8":0.0001
},
"kbfee":0.00001,
"seed_wif" : "abcdefg"
}

Response

Return Tx on Success

PHP
PHP
$tx = $bchClient->sendMany([
"wallet_id" => 999,
"seed_wif" => "abcdefg",
"to" => [
"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8" => 0.0001,
"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8" => 0.0001
],
"kbfee" => 0.0001,
"seed_wif" => "abcdefg"
]);
or
$tx = $bchClient->sendMany([
"wallet_id" => 999,
"password" => "abcdefg",
"to" => [
"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8" => 0.0001,
"qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8" => 0.0001
],
"kbfee" => 0.0001,
"seed_wif" => "abcdefg"
]);

get
GetTransaction

https://api.blocksdk.com/v1/bch/transaction/{hash}
Request
Response
Request
Path Parameters
hash
required
string
transaction hash
Response
201: Created
{
"txid":"dabe93e37d25ad1d9c7643a68cbffccc0df735178aea655f0d1592557467be8b",
"hash":"dabe93e37d25ad1d9c7643a68cbffccc0df735178aea655f0d1592557467be8b",
"version":1,
"size":224,
"vin":[
{
"txid":"159d65808fa552f0bf04626e6a98094de22d1219ad0e9d28a8b8a7f89c4dedd2",
"vout":0,
"scriptSig":{
"asm":"3045022100db441c8f41fbf96fbcb11f1b2a1760b9d6ca03a73093a7df346e983dbaa1dec102204813b339c85d71d5e130328e2be15fa609966a6a1049d095492315d3c4a85ee241 045c5c1b214e3269883a2fc2d9083856be3652e102c3eeae533cec2396e055d292d3a1aebf39b1b8a4d44626b8dc945eb7617b2319bed261152a49c4cc1bc38264",
"hex":"483045022100db441c8f41fbf96fbcb11f1b2a1760b9d6ca03a73093a7df346e983dbaa1dec102204813b339c85d71d5e130328e2be15fa609966a6a1049d095492315d3c4a85ee24141045c5c1b214e3269883a2fc2d9083856be3652e102c3eeae533cec2396e055d292d3a1aebf39b1b8a4d44626b8dc945eb7617b2319bed261152a49c4cc1bc38264"
},
"addresses":["qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8"],
"value":0.00084820
}
],
"total_in":0.00084820,
"vout":[
{
"value":0.00084590,
"n":0,
"scriptPubKey":{
"type":"pubkeyhash",
"asm":"OP_DUP OP_HASH160 4f06e84433e5d8d4c050ed57636dd651d9ecc77e OP_EQUALVERIFY OP_CHECKSIG",
"hex":"76a9144f06e84433e5d8d4c050ed57636dd651d9ecc77e88ac"
},
"addresses":["qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8"]
}
],
"total_out":0.00084590,
"in_count":1,
"out_count":1,
"fee":0.00000230,
"fee_per_kb":0.00001027,
"locktime":0,
"block_hash":"000000000000000002c0be4e85a5f470e36615b1b393cfb35c11de98e112c80d",
"block_height":613544,
"time":1576477136,
"confirmations":3
}

Response

Return Tx on Success

PHP
PHP
$tx = $bchClient->getTransaction([
"hash" => "892235a5aa0f52c2240603e9ca55012f0c76fee688623961003eae1f0ede4506 "
]);

post
SendTransaction

https://api.blocksdk.com/v1/bch/transaction
Request
Response
Request
Headers
x-api-key
required
string
API authentication key
Body Parameters
sign_hex
required
string
signed transaction hex
Response
201: Created
{
"txid":"dabe93e37d25ad1d9c7643a68cbffccc0df735178aea655f0d1592557467be8b",
"hash":"dabe93e37d25ad1d9c7643a68cbffccc0df735178aea655f0d1592557467be8b",
"version":1,
"size":224,
"vin":[
{
"txid":"159d65808fa552f0bf04626e6a98094de22d1219ad0e9d28a8b8a7f89c4dedd2",
"vout":0,
"scriptSig":{
"asm":"3045022100db441c8f41fbf96fbcb11f1b2a1760b9d6ca03a73093a7df346e983dbaa1dec102204813b339c85d71d5e130328e2be15fa609966a6a1049d095492315d3c4a85ee241 045c5c1b214e3269883a2fc2d9083856be3652e102c3eeae533cec2396e055d292d3a1aebf39b1b8a4d44626b8dc945eb7617b2319bed261152a49c4cc1bc38264",
"hex":"483045022100db441c8f41fbf96fbcb11f1b2a1760b9d6ca03a73093a7df346e983dbaa1dec102204813b339c85d71d5e130328e2be15fa609966a6a1049d095492315d3c4a85ee24141045c5c1b214e3269883a2fc2d9083856be3652e102c3eeae533cec2396e055d292d3a1aebf39b1b8a4d44626b8dc945eb7617b2319bed261152a49c4cc1bc38264"
},
"addresses":["qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8"],
"value":0.00084820
}
],
"total_in":0.00084820,
"vout":[
{
"value":0.00084590,
"n":0,
"scriptPubKey":{
"type":"pubkeyhash",
"asm":"OP_DUP OP_HASH160 4f06e84433e5d8d4c050ed57636dd651d9ecc77e OP_EQUALVERIFY OP_CHECKSIG",
"hex":"76a9144f06e84433e5d8d4c050ed57636dd651d9ecc77e88ac"
},
"addresses":["qp8sd6zyx0ja34xq2rk4wcmd6eganmx80cxtpm4az8"]
}
],
"total_out":0.00084590,
"in_count":1,
"out_count":1,
"fee":0.00000230,
"fee_per_kb":0.00001027,
"locktime":0,
"block_hash":"000000000000000002c0be4e85a5f470e36615b1b393cfb35c11de98e112c80d",
"block_height":613544,
"time":1576477136,
"confirmations":3
}

Response

Return Tx on Success

PHP
PHP
$tx = $bchClient->sendTransaction([
"sign_hex" => "abcdefg"
])