NAV
shell php javascript java csharp ruby python go

Dash APIs

Blockchain information

curl -X GET 'https://api.blocksdk.com/v2/dash/info' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$blockChain = $dashClient->getBlockChain();
var blockChain = dashClient.getBlockChain()
blockChain = dashClient.getBlockChain()
blockChain = dashClient.getBlockChain()
blockChain := dashClient.GetBlockChain()

Response Body

{
    "payload": {
        "network": "mainnet",
        "currency": "DASH",
        "last_block_height": 1404238,
        "last_block_hash": "0000000000000008475093c7e6db6518f6283e2db9d6feb60d429426248152c0",
        "last_block_datetime": "2021-01-13T04:35:02+00:00",
        "last_block_timestamp": 1610512502,
        "prev_block_height": 1404237,
        "prev_block_hash": "000000000000000b8c99724ed834d5e44424f6f00454f1e485db7179e2cb7e4d",
        "prev_block_datetime": "2021-01-13T04:34:51+00:00",
        "prev_block_timestamp": 1610512491,
        "unconfirmed_count": 12,
        "low_fee_per_kb": 5.0e-5,
        "medium_fee_per_kb": 8.0e-5,
        "high_fee_per_kb": 9.0e-5
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Returns information about the Dash blockchain.

HTTP Request

GET https://api.blocksdk.com/v2/dash/info

Response

Variable Type Description
unconfirmed_count int Memory pool transaction count
low_fee_per_kb double Low fees per kb
medium_fee_per_kb double Medium fees per kb (3~6 Block)
high_fee_per_kb double High fees per kb (1~2 Block)

Block information

curl -X GET 'https://api.blocksdk.com/v2/dash/blocks/1' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$block = $dashClient->getBlock([
    "block" => 1,
    "rawtx" => false,
    "offset" => 0,
    "limit" => 10
]);
var block = dashClient.getBlock({
    "block" : 1,
    "rawtx" : false,
    "offset" : 0,
    "limit" : 10
})
block = dashClient.getBlock({
    "block" => 1,
    "rawtx" => false,
    "offset" => 0,
    "limit" => 10
})
block = dashClient.getBlock({
    "block" : 1,
    "rawtx" : false,
    "offset" : 0,
    "limit" : 10
})
block := dashClient.GetBlock(map[string]interface{}{
      "block" : 1,
      "rawtx" : false,
      "offset" : 0,
      "limit" : 10
})

Response Body

{
    "payload": {
        "hash": "000007d91d1254d60e2dd1ae580383070a4ddffa4c64c2eeb4a2f9ecc0414343",
        "confirmations": 1404238,
        "height": 1,
        "transactions": [
            "ef3ee42b51e2a19c4820ef182844a36db1201c61eb0dec5b42f84be4ad1a1ca7"
        ],
        "transaction_count": 1,
        "total_input": 0,
        "input_count": 1,
        "total_output": 500,
        "output_count": 1,
        "fee_per_kb": 0,
        "total_fee": 0,
        "generation": 500,
        "reward": 500,
        "size": 186,
        "datetime": "2014-01-19T03:54:41+00:00",
        "timestamp": 1390103681,
        "prev_block_hash": "00000ffd590b1485b3caadc19b22e6379c733355108f107a430458cdf3407ab6",
        "prev_block_datetime": "2014-01-19T01:40:18+00:00",
        "prev_block_timestamp": 1390095618,
        "next_block_hash": "00000bafcc571ece7c5c436f887547ef41b574e10ef7cc6937873a74ef1efeae",
        "next_block_datetime": "2014-01-19T03:54:46+00:00",
        "next_block_timestamp": 1390103686
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Return information about a specific block

HTTP Request

GET https://api.blocksdk.com/v2/dash/blocks/<block>

URL Parameters

Parameter Type Description
block* string Block height or block hash

Query Parameters

Parameter Type Default Description
rawtx boolean false If true, return transaction details
offset int 0 Sequential index number at the beginning of the list of items for a given criterion
limit int 10 Limit number of item lists for a given criterion

Response

Variable Type Description
hash string Block Hash
height string Block Height
transactions array List of transactions contained in the block
transaction_count array Number of transactions contained in the block
total_input double Total amount of input of all transactions included in the block
input_count int Number of inputs of all transactions included in the block
total_output double Total amount of output of all transactions included in the block
output_count int Number of outputs of all transactions included in the block
fee_per_kb double Average fee per kb of all transactions
total_fee double Total fees for all transactions in the block
generation double Block Mining Amount
reward double Block mining reward
size int Block Size
datetime string Block creation date and time
timestamp string Block creation date and time

List of memory pool transactions

curl -X GET 'https://api.blocksdk.com/v2/dash/mempool' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$mempool = $dashClient->getMemPool([
    "rawtx" => false,
    "offset" => 0,
    "limit" => 10
]);
var mempool = dashClient.getMemPool({
    "rawtx" : false,
    "offset" : 0,
    "limit" : 10
})
mempool = dashClient.getMemPool({
    "rawtx" => false,
    "offset" => 0,
    "limit" => 10
})
mempool = dashClient.getMemPool({
    "rawtx" : false,
    "offset" : 0,
    "limit" : 10
})
mempool := dashClient.GetMemPool(map[string]interface{}{
      "rawtx" : false,
      "offset" : 0,
      "limit" : 10
})

Response Body

{
    "payload": {
        "transactions": [
            "c306f2ac797513f86935165a7aba57355c1b1f39631d3e0ac41b32becb544783",
            "ccd872672e94c498c4b60b2ebbb0b1b19d7c1e30ca86221eb7df5ce1b6bc6910",
            "1731918f9f056257cda4fc3f00b16120ce2c3b2c1e1bbcfebb17d4ecad568ee4",
            "c5ef2711ec6289661da924f2f2685879ef079386922ed8d0a4ebe4f3f025b60a",
            "6d9d2f009658af860aa399fce74d1ffd6e6531a4bc0d0d4d1f206cf65293b2a1",
            "087a7c8638670054f64390ec71b513e18ef0f37b72e1df74b541ba9265c032fc",
            "1b878b1f0795321249cf24c2f82d9451f75e02e1c5effb6d7a11b66c5da8095d",
            "981e73d6333f7286e2c198f2e7f2206cb5e9ea591cd7aef85b2de35f071b1df3",
            "abcfed2b04b637ec6f5f726b3c64e145e280e9e14d7f473998d77159fb7e2ab0",
            "f8119ed1446e500237920385b03605959642492847aa81bdf88ada41fb5e1faf"
        ],
        "transaction_count": 24
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Returns a list of transactions in the memory pool.

HTTP Request

GET https://api.blocksdk.com/v2/dash/mempool

Query Parameters

Parameter Type Default Description
rawtx boolean false If true, return transaction details
offset int 0 Sequential index number at the beginning of the list of items for a given criterion
limit int 10 Limit number of item lists for a given criterion

Response

Variable Type Description
transactions array List of transactions with memory pool
transaction_count array Number of transactions included in the memory pool

Address information

curl -X GET 'https://api.blocksdk.com/v2/dash/addresses/XwCBASyjskxCibLLyD2dMJyNhAqWgucksb' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$addressInfo = $dashClient->getAddressInfo([
    "address" => "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb",
    "rawtx" => false,
    "offset" => 0,
    "limit" => 10
]);
var addressInfo = dashClient.getAddressInfo({
    "address" : "14ydRmjd5Tzg7W2hJJ8nsuZvpQNVcLYCYN",
    "rawtx" : false,
    "offset" : 0,
    "limit" : 10
})
addressInfo = dashClient.getAddressInfo({
    "address" => "14ydRmjd5Tzg7W2hJJ8nsuZvpQNVcLYCYN",
    "rawtx" => false,
    "offset" => 0,
    "limit" => 10
})
addressInfo = dashClient.getAddressInfo({
    "address" : "14ydRmjd5Tzg7W2hJJ8nsuZvpQNVcLYCYN",
    "rawtx" : false,
    "offset" : 0,
    "limit" : 10
})
addressInfo := dashClient.GetAddressInfo(map[string]interface{}{
      "address" : "14ydRmjd5Tzg7W2hJJ8nsuZvpQNVcLYCYN",
      "rawtx" : false,
      "offset" : 0,
      "limit" : 10,
})

Response Body

{
    "payload": {
        "address": "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb",
        "transactions": [
            "8672d1c29299d12b27b887d965799d7e255b7a40a8c6c162c142f4c2d9113f04",
            "97ad5eeb399a2a86901624c696a1a9bf8021449ee292470ef556fff8692046d1",
            "b377043d27106a5524cb05ac26bf073467190582b6734921e863055dae72770e",
            "e7e886979b75e3f62629167200cb300d15a65c6ae64f9d4afbede3af78ad92fa",
            "c545309b19f155c0d3cae95489361298d184cdcd9842184cd5e3208e80091ef2",
            "1cb57e4e7bc4f0b9da3839656f0af3a749f8462a173caddb82f80c3a6928d691",
            "c1f2ca7a2ffcde10832aea8fca5b5b04689ad468ccafa823949a6b74ee9da52c",
            "b558eb2314216b0597c55da9e333a26a59cd098e60f00b15ef3f26c24144fa31",
            "e82a2efb645bd30e89121d57eca63f0a6affeaafba4b974be694d63ffc64af26",
            "6df49f596e14be74d04a8f9dbe5442ff9abc3375f10c1ab496287538d3f682b4"
        ],
        "transaction_count": 51,
        "received_count": 0,
        "total_received": 256.89550235,
        "unconfirmed_total_received": 0,
        "spent_count": 51,
        "total_spent": 256.79565815,
        "unconfirmed_total_spent": 0,
        "balance": 0.09984420000000001,
        "unconfirmed_count": 0,
        "first_datetime": "2017-10-13T12:06:46+00:00",
        "first_timestamp": 1507896406,
        "last_datetime": "2021-01-13T04:33:46+00:00",
        "last_timestamp": 1610512426
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Returns information about a specific address.

HTTP Request

GET https://api.blocksdk.com/v2/dash/addresses/<address>

URL Parameters

Parameter Type Description
address* string Return information from this address.

Query Parameters

Parameter Type Default Description
rawtx boolean false If true, return transaction details
reverse boolean true If true, the transaction is returned in the most recent order.
offset int 0 Sequential index number at the beginning of the list of items for a given criterion
limit int 10 Limit number of item lists for a given criterion

Response

Variable Type Description
transactions array List of transactions received or sent to the address
transaction_count int Number of transactions received or sent to the address
unconfirmed_transactions array List of transactions not included in the block
received_count double Number of transactions received
spent_count double Number of transactions sent
total_received double Total amount received
total_spent double Total amount sent
unconfirmed_total_received double Total amount received not included in the block
unconfirmed_total_spent double Total amount sent not included in the block
balance double Remaining balance
unconfirmed_count int Number of transactions not included in the block
first_datetime string Creation date and time of the first transaction that occurred at the address
first_timestamp int Creation date and time of the first transaction that occurred at the address
last_datetime string Creation date and time of the last transaction that occurred at the address
last_timestamp int Creation date and time of the last transaction that occurred at the address

Address balance

curl -X GET 'https://api.blocksdk.com/v2/addresses/XwCBASyjskxCibLLyD2dMJyNhAqWgucksb/balance' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$balance = $dashClient->getAddressBalance([
    "address" => "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb"
]);
var balance = dashClient.getAddressBalance({
    "address" : "14ydRmjd5Tzg7W2hJJ8nsuZvpQNVcLYCYN"
})
balance = dashClient.getAddressBalance({
    "address" => "14ydRmjd5Tzg7W2hJJ8nsuZvpQNVcLYCYN"
})
balance = dashClient.getAddressBalance({
    "address" : "14ydRmjd5Tzg7W2hJJ8nsuZvpQNVcLYCYN"
})
balance := dashClient.GetAddressBalance(map[string]interface{}{
      "address" : "14ydRmjd5Tzg7W2hJJ8nsuZvpQNVcLYCYN"
})

Response Body

{
    "payload": {
        "address": "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb",
        "balance": 0.09984420000000001,
        "unconfirmed_total_received": 0,
        "unconfirmed_total_spent": 0
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Returns the balance for a specific address.

HTTP Request

GET https://api.blocksdk.com/v2/dash/addresses/<address>/balance

URL Parameters

Parameter Type Description
address* string Return information from this address.

Response

Variable Type Description
unconfirmed_total_received double Total amount received not included in the block
unconfirmed_total_spent double Total amount sent not included in the block
balance double Remaining balance

HD wallet creation

curl -X POST 'https://api.blocksdk.com/v2/dash/wallets/hd' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'\
    -d '{"name" : "IwbdtnYMSD8MWHWGOwBluLAlbEZoMROC4mQ"}'   
$wallet = $dashClient->createHdWallet([
    "name" => "IwbdtnYMSD8MWHWGOwBluLAlbEZoMROC4mQ"
]);
var wallet = dashClient.createHdWallet({
    "name" : "IwbdtnYMSD8MWHWGOwBluLAlbEZoMROC4mQ"
})
wallet = dashClient.createHdWallet({
    "name" => "IwbdtnYMSD8MWHWGOwBluLAlbEZoMROC4mQ"
})
wallet = dashClient.createHdWallet({
    "name" : "IwbdtnYMSD8MWHWGOwBluLAlbEZoMROC4mQ"
})
wallet := dashClient.CreateHdWallet(map[string]interface{}{
      "name" : "IwbdtnYMSD8MWHWGOwBluLAlbEZoMROC4mQ"
})

Response Body

{
    "payload": {
        "id": 311,
        "name": "dAR99xw8rbVUEAOcR49o8I5SR5CpPIhX5FI",
        "wif": "XFB25ZKzCdGs9ri3J1r3Wa2RrDrJ2BxzRMWBusyTuKXQPapYYFNA",
        "datetime": "2021-01-13T04:51:27+00:00",
        "timestamp": 1610513487
    },
    "state": {
        "code": 201,
        "success": true
    }
}

Info

Create an HD wallet.

HTTP Request

POST https://api.blocksdk.com/v2/dash/wallets/hd

Body Parameters

Parameter Type Default Description
name string random Wallet name

Response

Variable Type Description
id int Wallet unique id
name string Wallet identification name
wif string Wallet key. This value is not stored on the server for security and stability reasons, so it cannot be recovered when lost. Be careful not to lose it.

Wallet list

curl -X GET 'https://api.blocksdk.com/v2/dash/wallets' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$wallets = $dashClient->getWallets([
    "offset" => 0,
    "limit" => 10
]);
var wallets = dashClient.getWallets({
    "offset" : 0,
    "limit" : 10
})
wallets = dashClient.getWallets({
    "offset" => 0,
    "limit" => 10
})
wallets = dashClient.getWallets({
    "offset" : 0,
    "limit" : 10
})
wallets := dashClient.GetWallets(map[string]interface{}{
      "offset" : 0,
      "limit" : 10
})

Response Body

{
    "payload": [
        {
            "id": 311,
            "name": "dAR99xw8rbVUEAOcR49o8I5SR5CpPIhX5FI",
            "datetime": "2021-01-13T04:51:27+00:00",
            "timestamp": 1610513487
        }
    ],
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Returns the list of wallets created.

HTTP Request

GET https://api.blocksdk.com/v2/dash/wallets

Query Parameters

Parameter Type Default Description
offset int 0 Sequential index number at the beginning of the list of items for a given criterion
limit int 10 Limit number of item lists for a given criterion

Response

Variable Type Description
id int Wallet unique id
name string Wallet identification name
datetime string Date and time the wallet was created
timestamp int Date and time the wallet was created

Specific wallet information

curl -X GET 'https://api.blocksdk.com/v2/dash/wallets/311' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$wallet = $dashClient->getWallet([
    "offset" => 0,
    "limit" => 10
]);
var wallet = dashClient.getWallet({
    "wallet_id" : 466
})
wallet = dashClient.getWallet({
    "wallet_id" => 466
})
wallet = dashClient.getWallet({
    "wallet_id" : 466
})
wallet := dashClient.GetWallet(map[string]interface{}{
      "wallet_id" : 466
})

Response Body

{
    "payload": {
        "id": 311,
        "name": "dAR99xw8rbVUEAOcR49o8I5SR5CpPIhX5FI",
        "address_count": 0,
        "transaction_count": 0,
        "unspent_transaction_count": 0,
        "loaded": false,
        "datetime": "2021-01-13T04:51:27+00:00",
        "timestamp": 1610513487
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Returns information about a specific wallet.

HTTP Request

GET https://api.blocksdk.com/v2/dash/wallets/<wallet_id>

URL Parameters

Parameter Type Description
wallet_id* int Wallet ID to return information

Response

Variable Type Description
id int Wallet unique id
name string Wallet identification name
address_count int Number of addresses created in wallet
transaction_count int Total number of transactions received or sent
loaded boolean Loading state
datetime string Date and time the wallet was created
timestamp int Date and time the wallet was created

Wallet loading

curl -X POST 'https://api.blocksdk.com/v2/dash/wallets/311/load' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token' \
  -d '{
    "wif" : "XFB25ZKzCdGs9ri3J1r3Wa2RrDrJ2BxzRMWBusyTuKXQPapYYFNA",
    "password" : "abcdef123456"
    }'
$load = $dashClient->loadWallet([
    "wallet_id" => 311,
    "wif" => "XFB25ZKzCdGs9ri3J1r3Wa2RrDrJ2BxzRMWBusyTuKXQPapYYFNA",
    "password" => "abcdef123456"
]);
var load = dashClient.loadWallet({
    "wallet_id" : 470,
    "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "password" : "abcdef123456"
})
load = dashClient.loadWallet({
    "wallet_id" => 470,
    "wif" => "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "password" => "abcdef123456"
})
load = dashClient.loadWallet({
    "wallet_id" : 470,
    "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "password" : "abcdef123456"
})
load := dashClient.LoadWallet(map[string]interface{}{
      "wallet_id" : 470,
      "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
      "password" : "abcdef123456"
})

Response Body

{
    "payload": {
        "id": 311,
        "loaded": true
    },
    "state": {
        "code": 201,
        "success": true
    }
}

Info

Load a specific wallet.

The loaded wallet can create transactions or addresses with passwords without wif.

HTTP Request

POST https://api.blocksdk.com/v2/dash/wallets/<wallet_id>/load

URL Parameters

Parameter Type Description
wallet_id* int Wallet id to load

Body Parameters

Parameter Type Description
password* string Loaded wallets require this password when creating a transaction or address.
wif* string This is the wif returned when the wallet was created

Response

Variable Type Description
id int Wallet unique id
loaded boolean Loading state

Unload wallet

curl -X GET 'https://api.blocksdk.com/v2/dash/wallets/311/unload' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$unload = $dashClient->unloadWallet([
    "wallet_id" => 311
]);
var unload = dashClient.unloadWallet({
    "wallet_id" : 467
})
unload = dashClient.unloadWallet({
    "wallet_id" => 467
})
unload = dashClient.unloadWallet({
    "wallet_id" : 467
})
unload := dashClient.UnloadWallet(map[string]interface{}{
      "wallet_id" : 467
})

Response Body

{
    "payload": {
        "id": 311,
        "loaded": false
    },
    "state": {
        "code": 201,
        "success": true
    }
}

Info

Unload the loaded wallet.

HTTP Request

POST https://api.blocksdk.com/v2/dash/wallets/<wallet_id>/unload

URL Parameters

Parameter Type Description
wallet_id* int Wallet ID to unload

Response

Variable Type Description
id int Wallet unique id
loaded boolean Loading state

Wallet balance

curl -X GET 'https://api.blocksdk.com/v2/dash/wallets/311/balance' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$walletBalance = $dashClient->getWalletBalance([
    "wallet_id" => 311
]);
var walletBalance = dashClient.getWalletBalance({
    "wallet_id" : 467
})
walletBalance = dashClient.getWalletBalance({
    "wallet_id" => 467
})
walletBalance = dashClient.getWalletBalance({
    "wallet_id" : 467
})
walletBalance := dashClient.GetWalletBalance(map[string]interface{}{
      "wallet_id" : 467
})

Response Body

{
    "payload": {
        "balance": 0,
        "unconfirmed_balance": 0
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Returns the remaining balance information for a specific wallet.

HTTP Request

GET https://api.blocksdk.com/v2/dash/wallets/<wallet_id>/balance

URL Parameters

Parameter Type Description
wallet_id* int Wallet ID to return balance

Response

Variable Type Description
balance double Balance left in wallet
unconfirmed_balance double The remaining balance not included in the block and pending use

Wallet address list

curl -X GET 'https://api.blocksdk.com/v2/dash/wallets/311/addresses' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$wallet_addresses = $dashClient->getWalletAddresses([
    "wallet_id" => 311,
    "offset" => 0,
    "limit" => 10
]);
var wallet_addresses = dashClient.getWalletAddresses({
    "wallet_id" : 467,
    "offset" : 0,
    "limit" : 10
})
wallet_addresses = dashClient.getWalletAddresses({
    "wallet_id" => 467,
    "offset" => 0,
    "limit" => 10
})
wallet_addresses = dashClient.getWalletAddresses({
    "wallet_id" : 467,
    "offset" : 0,
    "limit" : 10
})
wallet_addresses := dashClient.GetWalletAddresses(map[string]interface{}{
      "wallet_id" : 467,
      "offset" : 0,
      "limit" : 10
})

Response Body

{
    "payload": [
        {
            "address": "XjDMFkVRFfdGuQd2KgUK3MGScSaGNo9pjX",
            "hdkeypath": "m/0'/0'/0'",
            "datetime": "2021-01-13T04:55:06+00:00",
            "timestamp": 1610513706
        }
    ],
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Returns a list of addresses generated by a specific wallet.

HTTP Request

GET https://api.blocksdk.com/v2/dash/wallets/<wallet_id>/addresses

URL Parameters

Parameter Type Description
wallet_id* int Wallet ID to return address list

Query Parameters

Parameter Type Default Description
address string --- Filter by this address
hdkeypath string --- Filter by this hdkeypath
offset int 0 Sequential index number at the beginning of the list of items for a given criterion
limit int 10 Limit number of item lists for a given criterion

Create wallet address

curl -X POST 'https://api.blocksdk.com/v2/dash/wallets/311/addresses' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token' \
    -d '{
        "wif" : "XFB25ZKzCdGs9ri3J1r3Wa2RrDrJ2BxzRMWBusyTuKXQPapYYFNA"
    }'
$address = $dashClient->createWalletAddress([
    "wallet_id" => 311,
    "wif" => "XFB25ZKzCdGs9ri3J1r3Wa2RrDrJ2BxzRMWBusyTuKXQPapYYFNA"
]);

or

$address = $dashClient->createWalletAddress([
    "wallet_id" => 311,
    "wif" => "XFB25ZKzCdGs9ri3J1r3Wa2RrDrJ2BxzRMWBusyTuKXQPapYYFNA"
]);
var address = dashClient.createWalletAddress({
    "wallet_id" : 470,
    "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG"
})

or

var address = dashClient.createWalletAddress({
    "wallet_id" : 470,
    "password" : "abcdefg"
})
address = dashClient.createWalletAddress({
    "wallet_id" => 470,
    "wif" => "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG"
})

or

address = dashClient.createWalletAddress({
    "wallet_id" => 470,
    "password" => "abcdefg"
})
address = dashClient.createWalletAddress({
    "wallet_id" : 470,
    "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG"
})

or

address = dashClient.createWalletAddress({
    "wallet_id" : 470,
    "password" : "abcdefg"
})
address := dashClient.CreateWalletAddress(map[string]interface{}{
      "wallet_id" : 470,
      "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG"
})

or

address := dashClient.CreateWalletAddress(map[string]interface{}{
      "wallet_id" : 470,
      "password" : "abcdefg"
})

Response Body

{
    "payload": {
        "address": "XjDMFkVRFfdGuQd2KgUK3MGScSaGNo9pjX",
        "hdkeypath": "m/0'/0'/0'",
        "datetime": "2021-01-13T04:55:06+00:00",
        "timestamp": 1610513706
    },
    "state": {
        "code": 201,
        "success": true
    }
}

Info

Create an address in a specific wallet.

HTTP Request

POST https://api.blocksdk.com/v2/dash/wallets/<wallet_id>/addresses

URL Parameters

Parameter Type Description
wallet_id* int Wallet ID to create address

Body Parameters

Parameter Type Description
password string If the wallet is loaded, you can create an address with a password.
wif string This value is mandatory if the wallet is not loaded. Issued when the wallet is created.

Response

Variable Type Description
address string Generated address
hdkeypath string Hd path of generated address
datetime string Address creation date and time
timestamp string Address creation date and time

Wallet transaction list

curl -X GET 'https://api.blocksdk.com/v2/dash/wallets/311/transactions' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$wallet_transactions = $dashClient->getWalletTransactions([
    "wallet_id" => 311,
    "type" => "all",
    "order" => "desc",
    "offset" => 0,
    "limit" => 10
]);
var wallet_transactions = dashClient.getWalletTransactions({
    "wallet_id" : 215,
    "type" : "all",
    "order" : "desc",
    "offset" : 0,
    "limit" : 10
})
wallet_transactions = dashClient.getWalletTransactions({
    "wallet_id" => 215,
    "type" => "all",
    "order" => "desc",
    "offset" => 0,
    "limit" => 10
})
wallet_transactions = dashClient.getWalletTransactions({
    "wallet_id" : 215,
    "type" : "all",
    "order" : "desc",
    "offset" : 0,
    "limit" : 10
})
wallet_transactions := dashClient.GetWalletTransactions(map[string]interface{}{
    "wallet_id" : 215,
    "type" : "all",
    "order" : "desc",
    "offset" : 0,
    "limit" : 10
})

Response Body

{
    "payload": [
        {
            "txid": "8672d1c29299d12b27b887d965799d7e255b7a40a8c6c162c142f4c2d9113f04",
            "type": "received",
            "address": "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb",
            "amount": 2.99316207,
            "confirmations": 651250
        },

        ...

    ],
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Returns a list of transactions received or sent to the wallet.

HTTP Request

GET https://api.blocksdk.com/v2/dash/wallets/<wallet_id>/transactions

URL Parameters

Parameter Type Description
wallet_id* int Wallet ID to return transaction list

Query Parameters

Parameter Type Default Description
type string all Type of transaction (all,receive,spent,unspent)
order string desc Sort by newest, oldest (asc,desc)
offset int 0 Sequential index number at the beginning of the list of items for a given criterion
limit int 10 Limit number of item lists for a given criterion

Response

Variable Type Description
txid string transaction id, transaction hash
type string Transaction type (receive,spent,unspent)
address string Address used for transaction
amount string Transaction amount

Transfer wallet amount

curl -X POST 'https://api.blocksdk.com/v2/dash/wallets/125/sendtoaddress' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token' \
    -d '{
        "wif" : "XFB25ZKzCdGs9ri3J1r3Wa2RrDrJ2BxzRMWBusyTuKXQPapYYFNA",
        "address" : "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb",
        "amount" : 2.99316207
    }'  
$tx = $dashClient->sendToAddress([
    "wallet_id" => 125,
    "wif" => "XFB25ZKzCdGs9ri3J1r3Wa2RrDrJ2BxzRMWBusyTuKXQPapYYFNA",
    "address" => "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb",
    "amount" =>  2.99316207
])

or

$tx = $dashClient->sendToAddress([
    "wallet_id" => 125,
    "password" => "abcdefg",
    "address" => "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb",
    "amount" =>  2.99316207
])
var tx = dashClient.sendToAddress({
    "wallet_id" : 125,
    "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "address" : "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg",
    "amount" :  0.0001
})

or

var tx = dashClient.sendToAddress({
    "wallet_id" : 125,
    "password" : "abcdefg",
    "address" : "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg",
    "amount" :  0.0001
})
tx = dashClient.sendToAddress({
    "wallet_id" => 125,
    "wif" => "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "address" => "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg",
    "amount" =>  0.0001
})

or

tx = dashClient.sendToAddress({
    "wallet_id" => 125,
    "password" => "abcdefg",
    "address" => "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg",
    "amount" =>  0.0001
})
tx = dashClient.sendToAddress({
    "wallet_id" : 125,
    "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "address" : "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg",
    "amount" :  0.0001
})

or

tx = dashClient.sendToAddress({
    "wallet_id" : 125,
    "password" : "abcdefg",
    "address" : "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg",
    "amount" :  0.0001
})
tx := dashClient.SendToAddress(map[string]interface{}{
    "wallet_id" : 125,
    "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "address" : "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg",
    "amount" :  0.0001
})

or

tx := dashClient.SendToAddress(map[string]interface{}{
    "wallet_id" : 125,
    "password" : "abcdefg",
    "address" : "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg",
    "amount" :  0.0001
})

Response Body

{
    "payload": {
        "txid": "8672d1c29299d12b27b887d965799d7e255b7a40a8c6c162c142f4c2d9113f04",
        "version": 1,
        "size": 521,
        "inputs": [
            {
                "txid": "7dc3f9779b7e1e052745a99a484af5f5b78b91ad8f609a67b36a7c37fb169285",
                "output_index": 1,
                "script": {
                    "asm": "3044022041c348ec7d0532ce00f2e6e9f71a50647c9ea6fe2903043dae505c6dd38daddb022040f17b8c6711158bda45eb0075470011d5bb0df8a9e6e5db7d898b1631ba2fb4[ALL] 0334e3764f969e97ffed40a264813f69a7bce8a2888c22590ccffe210aed4f1daa",
                    "hex": "473044022041c348ec7d0532ce00f2e6e9f71a50647c9ea6fe2903043dae505c6dd38daddb022040f17b8c6711158bda45eb0075470011d5bb0df8a9e6e5db7d898b1631ba2fb401210334e3764f969e97ffed40a264813f69a7bce8a2888c22590ccffe210aed4f1daa"
                },
                "addresses": [
                    "Xs83znkBKepE1uk5ZkkFvnn1iUvtAXG2in"
                ],
                "value": 0.0997554
            },
            {
                "txid": "a86f12ac9263389bd424a9e66bfb60da924dac0da6ff95795d5fa43c111bd8fb",
                "output_index": 1,
                "script": {
                    "asm": "30450221009402f603daa341ac01f88a325b0a0c9ff432aa6c10219003546042b96b08a64a02204b3a3a6eebb2aa97b770f155198b7d808594727640ee1d1ffc645c66010383f5[ALL] 03625b4a76ea0a3ed494eabce7d153ed713b675d7c61607f437bd0776ad271da71",
                    "hex": "4830450221009402f603daa341ac01f88a325b0a0c9ff432aa6c10219003546042b96b08a64a02204b3a3a6eebb2aa97b770f155198b7d808594727640ee1d1ffc645c66010383f5012103625b4a76ea0a3ed494eabce7d153ed713b675d7c61607f437bd0776ad271da71"
                },
                "addresses": [
                    "XcHjDHkMozjfjharrm9RUxCVBxeZq9DvUo"
                ],
                "value": 0.0999626
            },
            {
                "txid": "a86f12ac9263389bd424a9e66bfb60da924dac0da6ff95795d5fa43c111bd8fb",
                "output_index": 0,
                "script": {
                    "asm": "3045022100cce72e765f2b2b25f307c96bd16a8b4ada00b49e8d0467e3e67236fa5a4dfc8c02205e44429fd215c660344d4d39d4a3e83b32b24165c60730efeba2b383de4e8024[ALL] 02b9f3d30822125bf8d31deb5b217ded569c2902bcf15ac72f8cf3f8b5eacf53c2",
                    "hex": "483045022100cce72e765f2b2b25f307c96bd16a8b4ada00b49e8d0467e3e67236fa5a4dfc8c02205e44429fd215c660344d4d39d4a3e83b32b24165c60730efeba2b383de4e8024012102b9f3d30822125bf8d31deb5b217ded569c2902bcf15ac72f8cf3f8b5eacf53c2"
                },
                "addresses": [
                    "Xmu8gd8CozU7aoHYdsnvG4CGhRd7RdoGuK"
                ],
                "value": 3.50613221
            }
        ],
        "total_input": 3.70585021,
        "outputs": [
            {
                "value": 2.99316207,
                "index": 0,
                "script": {
                    "type": "pubkeyhash",
                    "asm": "OP_DUP OP_HASH160 e0eeb719954df4f9844d738c014a0f787731f20f OP_EQUALVERIFY OP_CHECKSIG",
                    "hex": "76a914e0eeb719954df4f9844d738c014a0f787731f20f88ac"
                },
                "addresses": [
                    "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb"
                ]
            },
            {
                "value": 0.71263594,
                "index": 1,
                "script": {
                    "type": "pubkeyhash",
                    "asm": "OP_DUP OP_HASH160 5b730f9eb7a6e3927582c6108d57941a6a981f23 OP_EQUALVERIFY OP_CHECKSIG",
                    "hex": "76a9145b730f9eb7a6e3927582c6108d57941a6a981f2388ac"
                },
                "addresses": [
                    "Xj2PAHkHfS9NrzCG4xT6dM2Dcrhq5LArho"
                ]
            }
        ],
        "total_output": 3.70579801,
        "input_count": 3,
        "output_count": 2,
        "fee": 5.22e-5,
        "fee_per_kb": 0.00010019,
        "locktime": 0,
        "block_hash": "000000000000000c0bad5180767143bfceb81129102c528549941fce197611ee",
        "block_height": 752996,
        "datetime": "2017-10-13T12:06:46+00:00",
        "timestamp": 1507896406,
        "confirmations": 651250
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Send the amount to a specific address.

HTTP Request

POST https://api.blocksdk.com/v2/dash/wallets/<wallet_id>/sendtoaddress

URL Parameters

Parameter Type Description
wallet_id* int Wallet ID to transfer coin to

Body Parameters

Parameter Type Default Description
password string --- If the wallet is loaded, you can create a transaction with your password.
wif string --- This value is mandatory if the wallet is not loaded. Issued when the wallet is created.
kbfee double --- Fee per kb
address* string --- Address to receive coin
amount* double --- Amount to send
subtractfeefromamount boolean false If this value is true, the fee is deducted from the amount to be sent.

Response

Transaction Object

Wallet multi-coin transfer

curl -X POST 'https://api.blocksdk.com/v2/dash/wallets/311/sendtoaddress' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token' \
    -d '{
        "wif" : "XFB25ZKzCdGs9ri3J1r3Wa2RrDrJ2BxzRMWBusyTuKXQPapYYFNA",
        "to" : { 
            "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb" : 0.0001,
            "1AxZmuy1kMK4VXQzGuvzQNmqP2s9mS9vBu" : 0.00006840 
        }
    }'  
$tx = $dashClient->sendMany([
    "wallet_id" => 311,
    "wif" => "abcdefg",
    "to" => [
        "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb" => 2.99316207
    ],
]);

or

$tx = $dashClient->sendMany([
    "wallet_id" => 311,
    "password" => "abcdefg",
    "to" => [
        "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb" => 2.99316207
    ]
]);
var tx = dashClient.sendMany({
    "wallet_id" : 125,
    "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "to" : {
        "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg" : 0.0001,
        "1AxZmuy1kMK4VXQzGuvzQNmqP2s9mS9vBu" : 0.00006840
    },
})

or

var tx = dashClient.sendMany({
    "wallet_id" : 125,
    "password" : "abcdefg",
    "to" : {
        "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg" : 0.0001,
        "1AxZmuy1kMK4VXQzGuvzQNmqP2s9mS9vBu" : 0.00006840
    }
})
tx = dashClient.sendMany({
    "wallet_id" => 125,
    "wif" => "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "to" => {
        "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg" => 0.0001,
        "1AxZmuy1kMK4VXQzGuvzQNmqP2s9mS9vBu" => 0.00006840
    },
})

or

tx = dashClient.sendMany({
    "wallet_id" => 125,
    "password" => "abcdefg",
    "to" => {
        "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg" => 0.0001,
        "1AxZmuy1kMK4VXQzGuvzQNmqP2s9mS9vBu" => 0.00006840
    }
})
tx = dashClient.sendMany({
    "wallet_id" : 125,
    "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "to" : {
        "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg" : 0.0001,
        "1AxZmuy1kMK4VXQzGuvzQNmqP2s9mS9vBu" : 0.00006840
    },
})

or

tx = dashClient.sendMany({
    "wallet_id" : 125,
    "password" : "abcdefg",
    "to" : {
        "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg" : 0.0001,
        "1AxZmuy1kMK4VXQzGuvzQNmqP2s9mS9vBu" : 0.00006840
    }
})
tx := dashClient.SendMany(map[string]interface{}{
    "wallet_id" : 125,
    "wif" : "L5PGqGxSA7zTyHdNSVCKN8jzt3RKz9nn2KvUjdzyfsW1Czvqu5BG",
    "to" : {
        "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg" : 0.0001,
        "1AxZmuy1kMK4VXQzGuvzQNmqP2s9mS9vBu" : 0.00006840
    }
})

or

tx := dashClient.SendMany(map[string]interface{}{
    "wallet_id" : 125,
    "password" : "abcdefg",
    "to" : {
        "1KWbGyMn9MMwQSRLYtWqszcpNST9TqC1vg" : 0.0001,
        "1AxZmuy1kMK4VXQzGuvzQNmqP2s9mS9vBu" : 0.00006840
    }
})

Response Body

{
    "payload": {
        "txid": "8672d1c29299d12b27b887d965799d7e255b7a40a8c6c162c142f4c2d9113f04",
        "version": 1,
        "size": 521,
        "inputs": [
            {
                "txid": "7dc3f9779b7e1e052745a99a484af5f5b78b91ad8f609a67b36a7c37fb169285",
                "output_index": 1,
                "script": {
                    "asm": "3044022041c348ec7d0532ce00f2e6e9f71a50647c9ea6fe2903043dae505c6dd38daddb022040f17b8c6711158bda45eb0075470011d5bb0df8a9e6e5db7d898b1631ba2fb4[ALL] 0334e3764f969e97ffed40a264813f69a7bce8a2888c22590ccffe210aed4f1daa",
                    "hex": "473044022041c348ec7d0532ce00f2e6e9f71a50647c9ea6fe2903043dae505c6dd38daddb022040f17b8c6711158bda45eb0075470011d5bb0df8a9e6e5db7d898b1631ba2fb401210334e3764f969e97ffed40a264813f69a7bce8a2888c22590ccffe210aed4f1daa"
                },
                "addresses": [
                    "Xs83znkBKepE1uk5ZkkFvnn1iUvtAXG2in"
                ],
                "value": 0.0997554
            },
            {
                "txid": "a86f12ac9263389bd424a9e66bfb60da924dac0da6ff95795d5fa43c111bd8fb",
                "output_index": 1,
                "script": {
                    "asm": "30450221009402f603daa341ac01f88a325b0a0c9ff432aa6c10219003546042b96b08a64a02204b3a3a6eebb2aa97b770f155198b7d808594727640ee1d1ffc645c66010383f5[ALL] 03625b4a76ea0a3ed494eabce7d153ed713b675d7c61607f437bd0776ad271da71",
                    "hex": "4830450221009402f603daa341ac01f88a325b0a0c9ff432aa6c10219003546042b96b08a64a02204b3a3a6eebb2aa97b770f155198b7d808594727640ee1d1ffc645c66010383f5012103625b4a76ea0a3ed494eabce7d153ed713b675d7c61607f437bd0776ad271da71"
                },
                "addresses": [
                    "XcHjDHkMozjfjharrm9RUxCVBxeZq9DvUo"
                ],
                "value": 0.0999626
            },
            {
                "txid": "a86f12ac9263389bd424a9e66bfb60da924dac0da6ff95795d5fa43c111bd8fb",
                "output_index": 0,
                "script": {
                    "asm": "3045022100cce72e765f2b2b25f307c96bd16a8b4ada00b49e8d0467e3e67236fa5a4dfc8c02205e44429fd215c660344d4d39d4a3e83b32b24165c60730efeba2b383de4e8024[ALL] 02b9f3d30822125bf8d31deb5b217ded569c2902bcf15ac72f8cf3f8b5eacf53c2",
                    "hex": "483045022100cce72e765f2b2b25f307c96bd16a8b4ada00b49e8d0467e3e67236fa5a4dfc8c02205e44429fd215c660344d4d39d4a3e83b32b24165c60730efeba2b383de4e8024012102b9f3d30822125bf8d31deb5b217ded569c2902bcf15ac72f8cf3f8b5eacf53c2"
                },
                "addresses": [
                    "Xmu8gd8CozU7aoHYdsnvG4CGhRd7RdoGuK"
                ],
                "value": 3.50613221
            }
        ],
        "total_input": 3.70585021,
        "outputs": [
            {
                "value": 2.99316207,
                "index": 0,
                "script": {
                    "type": "pubkeyhash",
                    "asm": "OP_DUP OP_HASH160 e0eeb719954df4f9844d738c014a0f787731f20f OP_EQUALVERIFY OP_CHECKSIG",
                    "hex": "76a914e0eeb719954df4f9844d738c014a0f787731f20f88ac"
                },
                "addresses": [
                    "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb"
                ]
            },
            {
                "value": 0.71263594,
                "index": 1,
                "script": {
                    "type": "pubkeyhash",
                    "asm": "OP_DUP OP_HASH160 5b730f9eb7a6e3927582c6108d57941a6a981f23 OP_EQUALVERIFY OP_CHECKSIG",
                    "hex": "76a9145b730f9eb7a6e3927582c6108d57941a6a981f2388ac"
                },
                "addresses": [
                    "Xj2PAHkHfS9NrzCG4xT6dM2Dcrhq5LArho"
                ]
            }
        ],
        "total_output": 3.70579801,
        "input_count": 3,
        "output_count": 2,
        "fee": 5.22e-5,
        "fee_per_kb": 0.00010019,
        "locktime": 0,
        "block_hash": "000000000000000c0bad5180767143bfceb81129102c528549941fce197611ee",
        "block_height": 752996,
        "datetime": "2017-10-13T12:06:46+00:00",
        "timestamp": 1507896406,
        "confirmations": 651250
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Send money to multiple addresses.

HTTP Request

POST https://api.blocksdk.com/v2/dash/wallets/<wallet_id>/sendmany

URL Parameters

Parameter Type Description
wallet_id* int Wallet ID to transfer coin to

Body Parameters

Parameter Type Default Description
password string --- If the wallet is loaded, you can create a transaction with your password.
wif string --- This value is mandatory if the wallet is not loaded. Issued when the wallet is created.
kbfee double --- Fee per kb
to* object --- List of address and amount to receive the amount
subtractfeefromamount boolean false If this value is true, the fee is deducted from the amount to be sent.

to Sample

` {

"XwCBASyjskxCibLLyD2dMJyNhAqWgucksb" : 2.99316207 ,

"Xj2PAHkHfS9NrzCG4xT6dM2Dcrhq5LArho" : 0.71263594

} `

Response

Transaction Object

Send Transaction

curl -X POST 'https://api.blocksdk.com/v2/dash/transactions/send' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token' \
    -d '{
        "hex" : "0100000003859216fb377c6ab3679a608fad918bb7f5f54a489aa94527051e7e9b77f9c37d010000006a473044022041c348ec7d0532ce00f2e6e9f71a50647c9ea6fe2903043dae505c6dd38daddb022040f17b8c6711158bda45eb0075470011d5bb0df8a9e6e5db7d898b1631ba2fb401210334e3764f969e97ffed40a264813f69a7bce8a2888c22590ccffe210aed4f1daafffffffffbd81b113ca45f5d7995ffa60dac4d92da60fb6be6a924d49b386392ac126fa8010000006b4830450221009402f603daa341ac01f88a325b0a0c9ff432aa6c10219003546042b96b08a64a02204b3a3a6eebb2aa97b770f155198b7d808594727640ee1d1ffc645c66010383f5012103625b4a76ea0a3ed494eabce7d153ed713b675d7c61607f437bd0776ad271da71fffffffffbd81b113ca45f5d7995ffa60dac4d92da60fb6be6a924d49b386392ac126fa8000000006b483045022100cce72e765f2b2b25f307c96bd16a8b4ada00b49e8d0467e3e67236fa5a4dfc8c02205e44429fd215c660344d4d39d4a3e83b32b24165c60730efeba2b383de4e8024012102b9f3d30822125bf8d31deb5b217ded569c2902bcf15ac72f8cf3f8b5eacf53c2ffffffff02ef33d711000000001976a914e0eeb719954df4f9844d738c014a0f787731f20f88ac6a653f04000000001976a9145b730f9eb7a6e3927582c6108d57941a6a981f2388ac00000000"
    }'  
$tx = $dashClient->sendTransaction([
    "hex" => "0100000003859216fb377c6ab3679a608fad918bb7f5f54a489aa94527051e7e9b77f9c37d010000006a473044022041c348ec7d0532ce00f2e6e9f71a50647c9ea6fe2903043dae505c6dd38daddb022040f17b8c6711158bda45eb0075470011d5bb0df8a9e6e5db7d898b1631ba2fb401210334e3764f969e97ffed40a264813f69a7bce8a2888c22590ccffe210aed4f1daafffffffffbd81b113ca45f5d7995ffa60dac4d92da60fb6be6a924d49b386392ac126fa8010000006b4830450221009402f603daa341ac01f88a325b0a0c9ff432aa6c10219003546042b96b08a64a02204b3a3a6eebb2aa97b770f155198b7d808594727640ee1d1ffc645c66010383f5012103625b4a76ea0a3ed494eabce7d153ed713b675d7c61607f437bd0776ad271da71fffffffffbd81b113ca45f5d7995ffa60dac4d92da60fb6be6a924d49b386392ac126fa8000000006b483045022100cce72e765f2b2b25f307c96bd16a8b4ada00b49e8d0467e3e67236fa5a4dfc8c02205e44429fd215c660344d4d39d4a3e83b32b24165c60730efeba2b383de4e8024012102b9f3d30822125bf8d31deb5b217ded569c2902bcf15ac72f8cf3f8b5eacf53c2ffffffff02ef33d711000000001976a914e0eeb719954df4f9844d738c014a0f787731f20f88ac6a653f04000000001976a9145b730f9eb7a6e3927582c6108d57941a6a981f2388ac00000000"
]);
var tx = dashClient.sendTransaction({
    "hex" : "010000000001020f97230a629600ef2ce03116f910b172248b54a1c006fb0ee5999aab03a0a11000000000171600142a7466cd986288292aa43a2c9e4874c6f2f9a7ccffffffff0e65c24edd64b6ecf75cccb8329c5975ea3011d91219127ccd6741ba583253a30000000017160014760c51588eebf1d9f26c81335c70c42aea4f1a59ffffffff0210270000000000001976a914cb0af04acb1be057e1172119b94383f4653fa3b788acb81a0000000000001976a9146d3b5e5d8d8bd035ce785d3bb27c332d7cfced1c88ac02483045022100fe68240f0531038b8834025abd4d9338d7bbc0095f9f9301e0f02e159aa033e1022068edeae31080b32106a59cef92445c78e296797d8c4af193a0f5eaef1588f9c4012103508333612a63bd0b26bb9814bc1cfb53d8e2a3f1f237171e33223a8eeaa7da6f02483045022100acad6d184ac1dfd04ea335039ed329e79b76668cb90609fbabd8b3d6442e4c7d0220460961d945286f698e234000fb42e10dc4be566eac949c82060897a3c546137c0121027960d1c0511bcf5722afea96adb1c59aa584b48cdb88b802e0ead360e73a130a00000000"
})
tx = dashClient.sendTransaction({
    "hex" => "010000000001020f97230a629600ef2ce03116f910b172248b54a1c006fb0ee5999aab03a0a11000000000171600142a7466cd986288292aa43a2c9e4874c6f2f9a7ccffffffff0e65c24edd64b6ecf75cccb8329c5975ea3011d91219127ccd6741ba583253a30000000017160014760c51588eebf1d9f26c81335c70c42aea4f1a59ffffffff0210270000000000001976a914cb0af04acb1be057e1172119b94383f4653fa3b788acb81a0000000000001976a9146d3b5e5d8d8bd035ce785d3bb27c332d7cfced1c88ac02483045022100fe68240f0531038b8834025abd4d9338d7bbc0095f9f9301e0f02e159aa033e1022068edeae31080b32106a59cef92445c78e296797d8c4af193a0f5eaef1588f9c4012103508333612a63bd0b26bb9814bc1cfb53d8e2a3f1f237171e33223a8eeaa7da6f02483045022100acad6d184ac1dfd04ea335039ed329e79b76668cb90609fbabd8b3d6442e4c7d0220460961d945286f698e234000fb42e10dc4be566eac949c82060897a3c546137c0121027960d1c0511bcf5722afea96adb1c59aa584b48cdb88b802e0ead360e73a130a00000000"
})
tx = dashClient.sendTransaction({
    "hex" : "010000000001020f97230a629600ef2ce03116f910b172248b54a1c006fb0ee5999aab03a0a11000000000171600142a7466cd986288292aa43a2c9e4874c6f2f9a7ccffffffff0e65c24edd64b6ecf75cccb8329c5975ea3011d91219127ccd6741ba583253a30000000017160014760c51588eebf1d9f26c81335c70c42aea4f1a59ffffffff0210270000000000001976a914cb0af04acb1be057e1172119b94383f4653fa3b788acb81a0000000000001976a9146d3b5e5d8d8bd035ce785d3bb27c332d7cfced1c88ac02483045022100fe68240f0531038b8834025abd4d9338d7bbc0095f9f9301e0f02e159aa033e1022068edeae31080b32106a59cef92445c78e296797d8c4af193a0f5eaef1588f9c4012103508333612a63bd0b26bb9814bc1cfb53d8e2a3f1f237171e33223a8eeaa7da6f02483045022100acad6d184ac1dfd04ea335039ed329e79b76668cb90609fbabd8b3d6442e4c7d0220460961d945286f698e234000fb42e10dc4be566eac949c82060897a3c546137c0121027960d1c0511bcf5722afea96adb1c59aa584b48cdb88b802e0ead360e73a130a00000000"
})
tx := dashClient.SendTransaction(map[string]interface{}{
    "hex" : "010000000001020f97230a629600ef2ce03116f910b172248b54a1c006fb0ee5999aab03a0a11000000000171600142a7466cd986288292aa43a2c9e4874c6f2f9a7ccffffffff0e65c24edd64b6ecf75cccb8329c5975ea3011d91219127ccd6741ba583253a30000000017160014760c51588eebf1d9f26c81335c70c42aea4f1a59ffffffff0210270000000000001976a914cb0af04acb1be057e1172119b94383f4653fa3b788acb81a0000000000001976a9146d3b5e5d8d8bd035ce785d3bb27c332d7cfced1c88ac02483045022100fe68240f0531038b8834025abd4d9338d7bbc0095f9f9301e0f02e159aa033e1022068edeae31080b32106a59cef92445c78e296797d8c4af193a0f5eaef1588f9c4012103508333612a63bd0b26bb9814bc1cfb53d8e2a3f1f237171e33223a8eeaa7da6f02483045022100acad6d184ac1dfd04ea335039ed329e79b76668cb90609fbabd8b3d6442e4c7d0220460961d945286f698e234000fb42e10dc4be566eac949c82060897a3c546137c0121027960d1c0511bcf5722afea96adb1c59aa584b48cdb88b802e0ead360e73a130a00000000"
})

Response Body

{
    "payload": {
        "txid": "8672d1c29299d12b27b887d965799d7e255b7a40a8c6c162c142f4c2d9113f04",
        "version": 1,
        "size": 521,
        "inputs": [
            {
                "txid": "7dc3f9779b7e1e052745a99a484af5f5b78b91ad8f609a67b36a7c37fb169285",
                "output_index": 1,
                "script": {
                    "asm": "3044022041c348ec7d0532ce00f2e6e9f71a50647c9ea6fe2903043dae505c6dd38daddb022040f17b8c6711158bda45eb0075470011d5bb0df8a9e6e5db7d898b1631ba2fb4[ALL] 0334e3764f969e97ffed40a264813f69a7bce8a2888c22590ccffe210aed4f1daa",
                    "hex": "473044022041c348ec7d0532ce00f2e6e9f71a50647c9ea6fe2903043dae505c6dd38daddb022040f17b8c6711158bda45eb0075470011d5bb0df8a9e6e5db7d898b1631ba2fb401210334e3764f969e97ffed40a264813f69a7bce8a2888c22590ccffe210aed4f1daa"
                },
                "addresses": [
                    "Xs83znkBKepE1uk5ZkkFvnn1iUvtAXG2in"
                ],
                "value": 0.0997554
            },
            {
                "txid": "a86f12ac9263389bd424a9e66bfb60da924dac0da6ff95795d5fa43c111bd8fb",
                "output_index": 1,
                "script": {
                    "asm": "30450221009402f603daa341ac01f88a325b0a0c9ff432aa6c10219003546042b96b08a64a02204b3a3a6eebb2aa97b770f155198b7d808594727640ee1d1ffc645c66010383f5[ALL] 03625b4a76ea0a3ed494eabce7d153ed713b675d7c61607f437bd0776ad271da71",
                    "hex": "4830450221009402f603daa341ac01f88a325b0a0c9ff432aa6c10219003546042b96b08a64a02204b3a3a6eebb2aa97b770f155198b7d808594727640ee1d1ffc645c66010383f5012103625b4a76ea0a3ed494eabce7d153ed713b675d7c61607f437bd0776ad271da71"
                },
                "addresses": [
                    "XcHjDHkMozjfjharrm9RUxCVBxeZq9DvUo"
                ],
                "value": 0.0999626
            },
            {
                "txid": "a86f12ac9263389bd424a9e66bfb60da924dac0da6ff95795d5fa43c111bd8fb",
                "output_index": 0,
                "script": {
                    "asm": "3045022100cce72e765f2b2b25f307c96bd16a8b4ada00b49e8d0467e3e67236fa5a4dfc8c02205e44429fd215c660344d4d39d4a3e83b32b24165c60730efeba2b383de4e8024[ALL] 02b9f3d30822125bf8d31deb5b217ded569c2902bcf15ac72f8cf3f8b5eacf53c2",
                    "hex": "483045022100cce72e765f2b2b25f307c96bd16a8b4ada00b49e8d0467e3e67236fa5a4dfc8c02205e44429fd215c660344d4d39d4a3e83b32b24165c60730efeba2b383de4e8024012102b9f3d30822125bf8d31deb5b217ded569c2902bcf15ac72f8cf3f8b5eacf53c2"
                },
                "addresses": [
                    "Xmu8gd8CozU7aoHYdsnvG4CGhRd7RdoGuK"
                ],
                "value": 3.50613221
            }
        ],
        "total_input": 3.70585021,
        "outputs": [
            {
                "value": 2.99316207,
                "index": 0,
                "script": {
                    "type": "pubkeyhash",
                    "asm": "OP_DUP OP_HASH160 e0eeb719954df4f9844d738c014a0f787731f20f OP_EQUALVERIFY OP_CHECKSIG",
                    "hex": "76a914e0eeb719954df4f9844d738c014a0f787731f20f88ac"
                },
                "addresses": [
                    "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb"
                ]
            },
            {
                "value": 0.71263594,
                "index": 1,
                "script": {
                    "type": "pubkeyhash",
                    "asm": "OP_DUP OP_HASH160 5b730f9eb7a6e3927582c6108d57941a6a981f23 OP_EQUALVERIFY OP_CHECKSIG",
                    "hex": "76a9145b730f9eb7a6e3927582c6108d57941a6a981f2388ac"
                },
                "addresses": [
                    "Xj2PAHkHfS9NrzCG4xT6dM2Dcrhq5LArho"
                ]
            }
        ],
        "total_output": 3.70579801,
        "input_count": 3,
        "output_count": 2,
        "fee": 5.22e-5,
        "fee_per_kb": 0.00010019,
        "locktime": 0,
        "block_hash": "000000000000000c0bad5180767143bfceb81129102c528549941fce197611ee",
        "block_height": 752996,
        "datetime": "2017-10-13T12:06:46+00:00",
        "timestamp": 1507896406,
        "confirmations": 651250
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Send the signed transaction.

HTTP Request

POST https://api.blocksdk.com/v2/dash/transactions/send

Body Parameters

Parameter Type Description
hex string Signed transaction hex

Response

Transaction Object

Transaction information

curl -X GET 'https://api.blocksdk.com/v2/dash/transactions/8672d1c29299d12b27b887d965799d7e255b7a40a8c6c162c142f4c2d9113f04' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$tx = $dashClient->getTransaction([
    "tx_id" => "8672d1c29299d12b27b887d965799d7e255b7a40a8c6c162c142f4c2d9113f04    "
]);
var tx = dashClient.getTransaction({
    "tx_id" : "b7e98ec27b6fe51a1c1d7fc98ad0dd9c3f5953747901d4d3644fc3fc625c57a1"
})
tx = dashClient.getTransaction({
    "tx_id" => "b7e98ec27b6fe51a1c1d7fc98ad0dd9c3f5953747901d4d3644fc3fc625c57a1"
})
tx = dashClient.getTransaction({
    "tx_id" : "b7e98ec27b6fe51a1c1d7fc98ad0dd9c3f5953747901d4d3644fc3fc625c57a1"
})
tx := dashClient.GetTransaction(map[string]interface{}{
    "tx_id" : "b7e98ec27b6fe51a1c1d7fc98ad0dd9c3f5953747901d4d3644fc3fc625c57a1"
})

Response Body

{
    "payload": {
        "txid": "8672d1c29299d12b27b887d965799d7e255b7a40a8c6c162c142f4c2d9113f04",
        "version": 1,
        "size": 521,
        "inputs": [
            {
                "txid": "7dc3f9779b7e1e052745a99a484af5f5b78b91ad8f609a67b36a7c37fb169285",
                "output_index": 1,
                "script": {
                    "asm": "3044022041c348ec7d0532ce00f2e6e9f71a50647c9ea6fe2903043dae505c6dd38daddb022040f17b8c6711158bda45eb0075470011d5bb0df8a9e6e5db7d898b1631ba2fb4[ALL] 0334e3764f969e97ffed40a264813f69a7bce8a2888c22590ccffe210aed4f1daa",
                    "hex": "473044022041c348ec7d0532ce00f2e6e9f71a50647c9ea6fe2903043dae505c6dd38daddb022040f17b8c6711158bda45eb0075470011d5bb0df8a9e6e5db7d898b1631ba2fb401210334e3764f969e97ffed40a264813f69a7bce8a2888c22590ccffe210aed4f1daa"
                },
                "addresses": [
                    "Xs83znkBKepE1uk5ZkkFvnn1iUvtAXG2in"
                ],
                "value": 0.0997554
            },
            {
                "txid": "a86f12ac9263389bd424a9e66bfb60da924dac0da6ff95795d5fa43c111bd8fb",
                "output_index": 1,
                "script": {
                    "asm": "30450221009402f603daa341ac01f88a325b0a0c9ff432aa6c10219003546042b96b08a64a02204b3a3a6eebb2aa97b770f155198b7d808594727640ee1d1ffc645c66010383f5[ALL] 03625b4a76ea0a3ed494eabce7d153ed713b675d7c61607f437bd0776ad271da71",
                    "hex": "4830450221009402f603daa341ac01f88a325b0a0c9ff432aa6c10219003546042b96b08a64a02204b3a3a6eebb2aa97b770f155198b7d808594727640ee1d1ffc645c66010383f5012103625b4a76ea0a3ed494eabce7d153ed713b675d7c61607f437bd0776ad271da71"
                },
                "addresses": [
                    "XcHjDHkMozjfjharrm9RUxCVBxeZq9DvUo"
                ],
                "value": 0.0999626
            },
            {
                "txid": "a86f12ac9263389bd424a9e66bfb60da924dac0da6ff95795d5fa43c111bd8fb",
                "output_index": 0,
                "script": {
                    "asm": "3045022100cce72e765f2b2b25f307c96bd16a8b4ada00b49e8d0467e3e67236fa5a4dfc8c02205e44429fd215c660344d4d39d4a3e83b32b24165c60730efeba2b383de4e8024[ALL] 02b9f3d30822125bf8d31deb5b217ded569c2902bcf15ac72f8cf3f8b5eacf53c2",
                    "hex": "483045022100cce72e765f2b2b25f307c96bd16a8b4ada00b49e8d0467e3e67236fa5a4dfc8c02205e44429fd215c660344d4d39d4a3e83b32b24165c60730efeba2b383de4e8024012102b9f3d30822125bf8d31deb5b217ded569c2902bcf15ac72f8cf3f8b5eacf53c2"
                },
                "addresses": [
                    "Xmu8gd8CozU7aoHYdsnvG4CGhRd7RdoGuK"
                ],
                "value": 3.50613221
            }
        ],
        "total_input": 3.70585021,
        "outputs": [
            {
                "value": 2.99316207,
                "index": 0,
                "script": {
                    "type": "pubkeyhash",
                    "asm": "OP_DUP OP_HASH160 e0eeb719954df4f9844d738c014a0f787731f20f OP_EQUALVERIFY OP_CHECKSIG",
                    "hex": "76a914e0eeb719954df4f9844d738c014a0f787731f20f88ac"
                },
                "addresses": [
                    "XwCBASyjskxCibLLyD2dMJyNhAqWgucksb"
                ]
            },
            {
                "value": 0.71263594,
                "index": 1,
                "script": {
                    "type": "pubkeyhash",
                    "asm": "OP_DUP OP_HASH160 5b730f9eb7a6e3927582c6108d57941a6a981f23 OP_EQUALVERIFY OP_CHECKSIG",
                    "hex": "76a9145b730f9eb7a6e3927582c6108d57941a6a981f2388ac"
                },
                "addresses": [
                    "Xj2PAHkHfS9NrzCG4xT6dM2Dcrhq5LArho"
                ]
            }
        ],
        "total_output": 3.70579801,
        "input_count": 3,
        "output_count": 2,
        "fee": 5.22e-5,
        "fee_per_kb": 0.00010019,
        "locktime": 0,
        "block_hash": "000000000000000c0bad5180767143bfceb81129102c528549941fce197611ee",
        "block_height": 752996,
        "datetime": "2017-10-13T12:06:46+00:00",
        "timestamp": 1507896406,
        "confirmations": 651250
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Return information for a specific transaction.

HTTP Request

GET https://api.blocksdk.com/v2/dash/transactions/<tx_id>

URL Parameters

Parameter Type Description
tx_id string Transaction hash or transaction ID to return transaction information

Response

Transaction Object

Transaction Object

Variable Type Description
txid string Transaction id,Transaction Hash
version int Transaction version
size int Transaction size
inputs array[object] List of transactions used
total_input double Total amount of transactions used
outputs array[object] List of transactions received
total_output double Total amount of transactions received
input_count int Number of transactions used
output_count int Number of transactions received
fee double Fees used in the transaction
fee_per_kb double Fee per kb unit
locktime int Block height to be unlocked
block_hash string Hash of the block containing the transaction
block_height string The height of the block containing the transaction
datetime string Date and time the transaction was created
timestamp int Date and time the transaction was created

Input Object

Variable Type Description
txid string Previous transaction id, transaction hash
output_index int Previous transaction output number
script object Signature script
addresses array Address received from previous transaction
value double Amount received from previous transaction

Output Object

Variable Type Description
value double Amount to receive
index index Transaction Output number
script object Receive Address Script
addresses array receiving address