BitcoinCash

Create BitcoinCash Client

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

GetBlockChain

GET https://api.blocksdk.com/v1/bch/block

{
    "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)

$blockChain = $bchClient->getBlockChain();

GetBlock

GET https://api.blocksdk.com/v1/bch/block/{block}

Path Parameters

NameTypeDescription

block

string

Block number or hash

Query Parameters

NameTypeDescription

rawtx

boolean

Get transaction details

limit

number

Number of transactions to import

offset

number

Transaction List Offset

{
    "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

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

GetMemPool

GET https://api.blocksdk.com/v1/bch/mempool

Query Parameters

NameTypeDescription

rawtx

boolean

Get transaction details

offset

number

Transaction List Offset

limit

number

Number of transactions to import

{
    "unconfirmed_count" : 10,
    "tx" : {...}
}
$pool = $bchClient->getMemPool([
    "rawtx" => true,
    "offset" => 0,
    "limit" => 10
]);

GetAddressInfo

GET https://api.blocksdk.com/v1/bch/address/{address}

Path Parameters

NameTypeDescription

address

string

BitcoinCash Address

Query Parameters

NameTypeDescription

reverse

boolean

Reverse transaction information

rawtx

boolean

Get transaction details

offset

number

Transaction List Offset

limit

number

Number of Transaction to import

{
    "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

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

GetAddressBalance

GET https://api.blocksdk.com/v1/bch/address/{address}/balance

Path Parameters

NameTypeDescription

address

string

BitcoinCash Address

{
    "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

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

ListWallet

GET https://api.blocksdk.com/v1/bch/wallet

Query Parameters

NameTypeDescription

offset

number

Number of Address to import

limit

number

Address List offset

{
    "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

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

CreateWallet

POST https://api.blocksdk.com/v1/bch/wallet

Request Body

NameTypeDescription

name

string

Wallet Name

{
    "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)

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

LoadWallet

POST 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

Path Parameters

NameTypeDescription

wallet_id

number

Wallet Unique ID

Request Body

NameTypeDescription

password

string

Only available if the wallet is loaded.

seed_wif

string

Wallet seed private key

[]
$load = $bchClient->loadWallet([
    "wallet_id" => 999,
    "seed_wif" => "abcdefg",
    "password" => "abcdefg"
]);

UnloadWallet

POST https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/unload

Path Parameters

NameTypeDescription

wallet_id

number

Wallet Unique ID

[]
$unload = $bchClient->unloadWallet([
    "wallet_id" => 999
]);

GetWalletBalance

GET https://api.blocksdk.com/v1/bch/{wallet_id}/balance

Path Parameters

NameTypeDescription

wallet_id

number

Wallet Unique ID

{
    "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

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

ListWalletAddress

GET https://api.blocksdk.com/v1/bch/wallet/{wallet_td}/address

Path Parameters

NameTypeDescription

wallet_id

string

Wallet Unique ID

Query Parameters

NameTypeDescription

offset

string

Number of Address to import

limit

string

Number of transactions to import

address

string

Search by this address

hdkeypath

string

Search by this hdkeypath

{
    "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

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

CreateWalletAddress

POST https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/address

Path Parameters

NameTypeDescription

wallet_id

string

Wallet Unique ID

Request Body

NameTypeDescription

password

string

Only available if the wallet is loaded.

seed_wif

string

Seed private key issued at wallet creation(Not necessary if your wallet is loaded)

{
    "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

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

or

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

GetWalletTx

GET https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/transaction

Path Parameters

NameTypeDescription

wallet_id

string

Wallet Unique ID

Request Body

NameTypeDescription

category

string

Transaction type to import(all,receive,spent,unspent)

order

string

Sort deals to import(desc,asc)

offset

number

Number of Address to import

limit

number

Address List offset

{
   "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

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

SendToAddress

POST https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/sendtoaddress

Path Parameters

NameTypeDescription

wallet_id

string

Wallet Unique ID

Request Body

NameTypeDescription

subtractfeefromamount

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

string

Only available if the wallet is loaded.

kbfee

number

Fee per kilobytes to be used for transactions

seed_wif

string

Seed private key issued at wallet creation(Not necessary if your wallet is loaded)

amount

number

balance to be sent

address

string

BitcoinCash Address to Receive

{
	"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

$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
])

SendMany

POST https://api.blocksdk.com/v1/bch/wallet/{wallet_id}/sendmany

Path Parameters

NameTypeDescription

wallet_id

string

Wallet Unique ID

Request Body

NameTypeDescription

subtractfeefromamount

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

string

Only available if the wallet is loaded.

to

object

Receiving Information

kbfee

number

Fee per kilobytes to be used for transactions

seed_wif

string

Seed private key issued at wallet creation(Not necessary if your wallet is loaded)

{
	"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

$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"
]);

GetTransaction

GET https://api.blocksdk.com/v1/bch/transaction/{hash}

Path Parameters

NameTypeDescription

hash

string

transaction hash

{
	"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

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

SendTransaction

POST https://api.blocksdk.com/v1/bch/transaction

Request Body

NameTypeDescription

sign_hex

string

signed transaction hex

{
	"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

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

Last updated