Monero

Craete Monero Client

use BlockSDK;

$blockSDK = new BlockSDK("YOU_TOKEN");
$xmrClient = $blockSDK->createMonero();

or

$xmrClient = BlockSDK::createMonero("YOU_TOKEN");

Object

Tx

Name

Type

Content

tx_hash

string

hash of the transaction.

version

char

Transaction version

size

int

Transaction size

vin

array[Vin]

List of inputs into transaction

in_count

int

Transaction input count

vout

array[Vout]

List of outputs from transaction

out_count

int

Transaction output count

fee

double

Transaction fee

fee_per_kb

double

Transaction fee per kb

unlock_time

int

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

block_height

int

unsigned int; block height including the transaction

block_timestamp

int

unsigned int; Unix time at chich the block has been added to the blockchain

extra

array[char]

Usually called the "payment ID" but can be used to include any random 32 bytes

rct_signatures

object

Ring signatures

rctsig_prunable

object

vin

Name

Type

Content

tx_hash

string

the hash of the origin transaction(Only shown if it's my transaction)

n

char

the index of the output being redeemed from the origin transaction(Only shown if it's my transaction)

address

string

Monero Address(Only shown if it's my transaction)

amount

double

The amount of the input, in atomic units.

key_offsets

array[long]

A list of integer offets to the input.

k_image

string

The key image for the given input

vout

Name

Type

Content

amount

double

Amount of transaction output, in atomic units.

key

string

The stealth public key of the receiver. Whoever owns the private key associated with this key controls this transaction output.

address

string

Recipient Monero Address(Only shown if it's my transaction)

GetBlockChain

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

Path Parameters

NameTypeDescription

string

{
    "height":1978439,
    "bestblockhash":"cf8c915025c153b2dc573d3bc8045d85ec5be1532868aa708621e46ecaff44b9",
    "prev_hash":"c1ff3030e727d2a61a93924f79f2a189892e5f0c555290636f31faf2aedb0b30",
    "low_fee_per_kb":0.000019,
    "medium_fee_per_kb":0.000024,
    "high_fee_per_kb":0.000028
}

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

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 = $xmrClient->getBlockChain();

GetBlock

GET http://api.blocksdk.com/v1/xmr/block/{block}

Path Parameters

NameTypeDescription

block

string

블록 해쉬

Query Parameters

NameTypeDescription

rawtx

boolean

Get transaction details

limit

integer

Number of transactions to import

offset

integer

Transaction List Offset

{
    "hash": "21c17d3fb429decca5271c6cf1e344207a0b4a9b0b8c9dc984edb56e501ed56b",
    "height": 1915486,
    "time": 1567571728,
    "tx": [...],
    "tx_count": 10,
    "input_count": 18,
    "out_count": 20,
    "fee_per_kb" : 0,
    "fee_total": 0.00138771,
    "reward": 2.39825201,
    "size": 24467,
    "prev_hash": "8daebf1f6c6bb3f6b29099bd375ff6c12db7aae4ff187369172b222be8309fec",
    "next_hash": "6375974518b9d2a278c83b3b7720062c499de295d6cae96985a27af0d7f6bfee"
}

Response

Nmae

Type

Content

hash

string

hash of the block

height

int

the block number

time

int

The date and time at which a block is mined.

tx

array[string],array[Tx]

Transaction contained in the block

tx_count

int

The number of transactions contained in the block

input_count

int

The number of inputs for all transactions in the block

out_count

int

The number of outputs for all transactions in the block

fee_total

string

Total transaction fee

reward

string

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 = $xmrClient->getBlock([
    "block" => 1125312,
    "rawtx" => true,
    "offset" => 0,
    "limit" => 10
]);

GetMemPool

GET https://api.blocksdk.com/v1/xmr/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 = $xmrClient->getMemPool([
    "rawtx" => true,
    "offset" => 0,
    "limit" => 10
]);

ListAddress

GET https://api.blocksdk.com/v1/xmr/address

Query Parameters

NameTypeDescription

limit

number

Number of Address to import

offset

number

Address List offset

{
    "items" : [
        {
            "id": 1,
            "name": "test",
            "address": "45GPwAnHxzsXydh7YKs7JzTz7mWzhcsiYDJXuJupUrg15jhUYXwykkAjiP88CCMGtxFnjoZ6dsgh5a75rodXxhLxT5sLdAk",
            "public_spendkey": "60213dc710cc48b9322930dc4eedbba154d6b23f260449498cf30684bf6da21c",
            "public_viewkey": "50d24715a21af3ff5dfece8eb516d1586a49153f7586c0c5ebd524bf92a91de7",
            "created_at": "2019-08-01 00:00:00"
        },
        {
            "id": 3,
            "name": "test2",
            "address": "42ZZxnbYHjq3sFqYMwiGfbGKogUmY3eqD4MdtkBt1rSYNxvkygHnPJSjiP88CCMGtxFnjoZ6dsgh5a75rodXxhLxT88VdoJ",
            "public_spendkey": "18c72a72bb9dcc11233732134613e25b9e16abd47e322014101faf32ee985d83",
            "public_viewkey": "50d24715a21af3ff5dfece8eb516d1586a49153f7586c0c5ebd524bf92a91de7",
            "created_at": "2019-08-30 03:22:45"
        }
    ]
}

Response

Name

Type

Content

id

int

Unique id of the address

name

string

Name you specified when creating the address

address

string

Monero Address

public_spendkey

string

Spend public key of address

public_viewkey

string

View public key of address

created_at

datetime

Date and time the address was created

$listAddress = $xmrClient->listAddress([
    "offset" => 0,
    "limit" => 10
]);

CreateAddress

POST https://api.blocksdk.com/v1/xmr/address

Request Body

NameTypeDescription

name

string

Name to give address

{
    "id": 9,
    "address": "43UXfrCs4YLNHxowDMTaFDLWuh16uXj9N81p1witp25bRe9XCbPg7aijiP88CCMGtxFnjoZ6dsgh5a75rodXxhLxT9LvsyG",
    "private_spend_key": "privateKey"
}

Response

Name

Type

Content

id

int

Address unique ID

address

string

Monero Address

private_spend_key

string

Private spending key to use when sending Monero

$address = $xmrClient->createAddress([
    "name" => "test address"
]);

GetAddressInfo

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

Path Parameters

NameTypeDescription

address_id

number

Address unique ID

Request Body

NameTypeDescription

password

string

If loaded, password is required.

private_spend_key

string

If not loaded, the private_spend_key value is required.

offset

number

Transaction List Offset

limit

number

Number of Transaction to import

{
    "address": "43UXfrCs4YLNHxowDMTaFDLWuh16uXj9N81p1witp25bRe9XCbPg7aijiP88CCMGtxFnjoZ6dsgh5a75rodXxhLxT9LvsyG",
    "tx": [...],
    "tx_count": 0,
    "received_count": 0,
    "received_total": 0,
    "spent_count": 0,
    "spent_total": 0,
    "balance": 0,
    "unspent_output_count": 0
}

Response

Name

Type

Content

address

string

Monero Address

tx

array[addressTx]

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

spent_count

int

The number of transactions spent from the address

spent_total

double

Transaction amount spent from the address

balance

string

Remaining balance

unspent_output_count

int

Unused Transaction Count

addressTx

Name

Type

Content

amount

double

Transaction amount

tx_hash

string

Transaction hash

category

string

Type of transaction(spent or received)

time

int

Trading time

$addressInfo = $xmrClient->getAddressInfo([
    "address_id" => 1234,
    "private_spend_key" => "asdasdasd",
    "offset" => 0,
    "limit" => 10
]);

GetAddressBalance

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

Path Parameters

NameTypeDescription

address_id

string

Address unique ID

Request Body

NameTypeDescription

private_spend_key

string

If not loaded, the private_spend_key value is required.

password

string

If loaded, password is required.

{
    "balance": "0.00000000",
    "unconfirmed_balance": "0.00000000",
    "unspent_output_count": 0
}

Response

Name

Type

Content

balance

double

Balance of the address

unconfirmed_balance

double

Balance of transactions not included in the block of addresses

unspent_output_count

int

Unused Transaction Count

$balance = $xmrClient->getAddressBalance([
    "address_id" => 1234,
    "private_spend_key" => "asdasdasd"
]);

SendToAddress

POST https://api.blocksdk.com/v1/xmr/address/{address_id}/sendtoaddress

Path Parameters

NameTypeDescription

address_id

number

Address 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 ( default : false )

address

string

Address to receive coins

password

string

Only available if the wallet is loaded.

private_spend_key

string

Private spending key issued at address creation

kbfee

string

a fee per kb

amount

string

Amount of Ethereum to send

address_id

string

Address to receive Monero

{
    "tx_hash": "e5e58aff2d3acc7830998eed3fd410e2df33f2e28e5ccc09c36f5bcf5f8686b6",
    "tx_key": "71678bc25fdb3970b50df8fb780a5e14672ddba7a93755c2d168ac83e7bf3702",
    "size": 3558,
    "tx_hex": "02000102000bb3dc48fcad1da0f728f2baab01c6dd07ffe56a98ed03f4d59201b3f72e99cb55b0d31c20250ca47d35977675c843d549f27ee1ac6abb1fe77041ca9d5f587052e0a5080200024589a1551e70790ef8d08c710ae6b5f7fd541424a373d04f8830de881f67047400026b0add53a2be59dba6aca531b3e8f1c71f1c672cc7ac0b15d49d3faef916ae8b2c0209018308d5482eacac6f0117ef1638c724024a5f3112bf57350c4c174db677df95555b36d30cb8e1f0483a0490c7e93f8d70d720d17d0fc06d8d15662e7aa61a58b45cad7f3c093be8faa3eb93555891fd9e6165de1e236574a3b4d1a9a01a87a74eec3f83f813d23e7ec0f8a26d6a2d590464e18202fc4452a271350306cdbc012a781ca62b64e8695f62670cc2a3bb42592957a93508392ebe2f4546ce4c6a9bfd35685c176c9e33925206c63d8c88fc7101dfdf2605c5caa4715ae4232e4c4f1d973c172b34a1132b8e111f43411051b456d8926b2824138099bec5307109d1d6520ae4bf415a27b2ea03d7947b6332dd5df4326e3542ea5b9fe04e9d125646637a874c7d89a22f7a18bbef334e866a3d30c8bd9f317eb156e2ff8060c66f0d30f6eeeebe54cd0141974ca20c5311dd7418fffb9f9db7d86381e9bc9dfc28030704f7c43118f9ec097eea98a58f58ea8d47115adf7291b795c2818a16d8e9cd14243f8e340444ab32a0960fc1325659c9778a32752995418af70107f7c3f91b7dbfc673e6c29db3ef917d9d906f5e9f3a45179617fcc6d6bb0c7a9a42ee209c8dbd8a913983245c29542896b6f06d82cd624f369c47b33df67e428003959fb1e1e7b305caf16c7a6a13bba75397b6874630548b1556f080313d8606b507ca26ddf644509425a7e1c9aa4cedb73d8228fe6c59ad5fee3f8848ea766355a2358aa09b515ab1bb03f38ede153073ad215de81c050b53dfcc92e2309aca62f286291307e06ee260949d3ef712eb67edfa9ceaf67bd7d4a88cc63351cfafaaf2a8c63cf21783208ea588823382f705959c5e02bcf6f2ebd4010c50ebdc9636558f894823fbc699174b744fbc14a8811b9a47e121f9ce96ea406f4b1936e7ad605ad4c9ddb9227fdd9e7dd604e682b3b0f24ab6d00e7347ec8c74800e27c586ae06df6db148c4cc9cfb416c53e8dc31362c292c5a93c3ca09ca2e06879ebf6d27710dc10a6b7738633b87440acfe01b82062c4c8223752b64b164a9930cc9eaa51995fa62b401845a0e3568847028e37b49598faf9d948a95e9098e3a5faaaa4f2f3815c4afd217637883663ded6d0c71ee345ec60167d88603938a1a8a2d2279a74a1f0eed11a128f55e8272e6c25c1d6427bb37c7ac08dea3781e2bfa0a43f87289210630fcb0cce7809b2f25fe0caa191128b208e850cc9b8f97ff860b1e9dbc135705caea9028deeff58ed4a86b2a441f2000692ed8660dcebad13f07a91de579a100392cadf9e32646cfeb7001e3cea4be57440041f80b2f0f8a07edfb2e27907f0922d772e47832badcc081c8bb78458f98b0d0ba7b126d063dd7928cd08c394c08c6993af21128036a972b31aadf099930a00cb565f1b749c5b637b8b2f4c716007496c9e502f43c1b695987d7b295dc110e363af325764c11f570fc100216bf03f64a6fcae6ec23844dbd2f58b8df9947867334a4a2bb75357a07afb4afe5090e094763a94e54abd072a5bcd9ba8bb8d0ff0b8d053c5ff3aad387e0ef782996079ce799917a438b09d3097241d2d0e85ab7429b0454be2d89243eca465d1f6b05a46136ab418894f04c0a645f22690b514bfefe9c45322df08fb82c9bee95050d4e1984089e729ab762338b77ba88a2c9d93c761d67958a2d8590ad0e1c9d200b6158954dfb6dbbffd443b127fc98b8414ecd985ab456f570efbf3a896652640e2d1766eae206f4bc3b089e8c26ed53f4cf472942a806d322d1dd4fd08d75c809bd74c1c7a40d4fa4cd6c983147f1cf0a6b92f8dd6612a9bcf6fcc8e9cd441202e08ef2a80e514db4c738479d8a34420070fd85d86a2c2b5a21d0176a76a2dc00c956e3e1f6747f8743b7439b74aad5fc21da5c1d2b6f63bd007f0d1d1c8d080c470ff1ed71aa109237b482e08269b969b733d8636e89c4a665160b05c5f9e008b3b22f6db6ae21ced965977158cbf5447d5c7ae58c28e5044a653fe6fa3a6b0f538fcf54b3ba50609102005b6217bbfc778bb3c2e10f0b833cf719aab85927019f7cd5c71e2ed788ad5a67b35e064bdbe37081f7a2ed76ed2154facf647cd00adbb51424b7788e76923608aa0dcc764727645f36bccb8475a4ca6f3397a7ac05bf80e1ac12072bad65530ebc7b4977de1cbfe35b7625f3e5744880a2e48e7e01b4feff566deab0d04ff4923c04f1ca32fed5649ad578b17e5de51dbc87b2a305e12e719655af9e6ce7f6341578e9f9b884cb559f51eb00de83a852024a30ad04fa54446d8e75d9fc462f64771869cf8226d44427c0d71e9752790fa5ce2c12ed",
    "vin": [
        {
            "key": {
                "amount": 0,
                "key_offsets": [
                    3962069,
                    361652,
                    1471401,
                    240779,
                    1231526,
                    388819,
                    558671,
                    926223,
                    329944,
                    705588,
                    1942587
                ],
                "k_image": "4a44da99a80d051436cfc84d7afe9f4fb9d8762055a35c9a1e5603c8727f02d8"
            },
            "prev_out": {
                "tx_hash": "445a181dced2c6f5db9d0aae10424f57c2a38ceab4bc83a4932246fb5dad34a4",
                "n": 0,
                "amount": 0.00986615
            }
        }
    ],
    "vout": [
        {
            "amount": 0,
            "target": {
                "key": "b465e573004fc83f5c038cbeeb7ecc0cdc6323f9296177f80bf446d70c8d02ab",
                "address": "43UXfrCs4YLNHxowDMTaFDLWuh16uXj9N81p1witp25bRe9XCbPg7aijiP88CCMGtxFnjoZ6dsgh5a75rodXxhLxT9LvsyG"
            }
        },
        {
            "amount": 0,
            "target": {
                "key": "23bc4b39f380302e1fb91f003a0a73af0ac7176c639f6c3aa1b949b3fc70a169",
                "address": "4AM2xJBDYwcLWGBFACg1BmcLTdjJ9FurbeDapj27MSxZK7oHf7TSQ9YjiP88CCMGtxFnjoZ6dsgh5a75rodXxhLxT8KPaTm"
            }
        }
    ],
    "extra": [
        2,
        9,
        1,
        17,
        217,
        98,
        83,
        144,
        203,
        251,
        206,
        1,
        222,
        207,
        1,
        14,
        171,
        252,
        106,
        75,
        240,
        125,
        249,
        89,
        140,
        1,
        39,
        117,
        247,
        238,
        182,
        168,
        179,
        219,
        158,
        159,
        237,
        9,
        145,
        83,
        110,
        178,
        178,
        92
    ],
    "rct_signatures": {
        "type": 4,
        "txnFee": 133850000,
        "ecdhInfo": [
            {
                "amount": "1e3018a849765193"
            },
            {
                "amount": "fdf3fa72bc925079"
            }
        ],
        "outPk": [
            "252c43c99da60c0e5b5f0c411913390d750bc56109579b5f49a7082a30dc5a8c",
            "bd33aec16876e88930a7943edde1304517dbb23636cca658b31778487847bc8e"
        ]
    },
    "rctsig_prunable": {
        "nbp": 1,
        "bp": [
            {
                "A": "379fccfe38daa52f610e61fa425e7c567f919b7817249a1ecfe76c8557dcf0f6",
                "S": "ffb34e270f2f28074c2226c65f7d9375f31512a8b81dc3e82d549af07c36b81d",
                "T1": "c63414bb42dce966661b93f24bebabcfe99703cb8faff0e4426017bf5d0b1e51",
                "T2": "fe97cc67bfc957a0916e4cda7d783b59b23ceaf20c22465ec020b3b14a54772a",
                "taux": "8f1afc4fc82f21fe6d32dead16a09bd40273207e7ecff7bb7041bc88e3670d0d",
                "mu": "dba1a94557b3ae10b6674135e1ab52d34aab833a5e8e27518dcbf02036f9170f",
                "L": [
                    "d18565862c9156bf28a298cb723b89ef0ea4a3e3cbc27bbd8d3040e9fcdbf019",
                    "298b262521ae2996888079dfbd2af67cf66b3095ca917f81ed5e6557579a45ec",
                    "6e765f221e720a79d00145f303752546cb69145eda066b2784710f931d0d0ad7",
                    "85ebcec4a6e3c6770eba7e43aa6756b352d239a651e40212e3aafd887d19bed3",
                    "ac712c8ae12fdb25b11189ab563d9c6d67c72d51a6b3f27d18ebb96e0c8983c4",
                    "56e4f69242ff694378bef45babaaf766142d4222c8df32333559cd4694fa2a7c",
                    "93682140c2825a5ef7451281ac9d4a4efd8b9162ed14c8beadbe1ff81bf47661"
                ],
                "R": [
                    "e32f83f9769902939d18041f83b2440f615e32b2f327ede34528ae9fe0a8f6a2",
                    "ca483e02cb8f9af0d2240821a2feddb7f549fee787f3a2e9fb678fd560af8383",
                    "1033368248c56af9c4381cf81284be05fd1e097bd8399597e8e2c7835934c872",
                    "a65685a065ab666e87c37199180aa2591c86318ada2976c52345cdd53867ffea",
                    "dd5f01bd962d1bdfcd748d445aebf892537947ec5d1a5977a57ce48b8b4409ed",
                    "2b9ae51cede7eda39651fca62a2fb166332bfceb8c57b288232a6460462d8815",
                    "53eec63e25f9d58121c6aa8ada90e9ae375390b35a3b2cf9a8dfc63f0c05a268"
                ],
                "a": "b9b97e81e41f2fcfea6f350c27c21a3c81a48047af0ba69f9d744e9240ecae0e",
                "b": "33018fc97ca86846056010a0a06a6082f88e73f1432f80068266466aab7a600c",
                "t": "e95edfcbeec39b9c8a75c9504935547da7cb5fb652900189aafa42e9608b9106"
            }
        ],
        "MGs": [
            {
                "ss": [
                    [
                        "3f1ab9b2fa87f00592250c302b1eac8e11c9c4d739d619d4d9831a258ba4c307",
                        "eeb92dcede3d5a342e405cdcb9300df2084c3676c6de166f7a454ca55062c901"
                    ],
                    [
                        "c0bbf269b7efce5ce6ca815c86d16a8636f21bc1e76a09561414de2699965e02",
                        "e152afad71c810dba0968584893615a0b2234f50bce4513c37bd84015f3a7d00"
                    ],
                    [
                        "334be826daeec4868eb2759a9ac985543310eafd3928c2b07ec6352e8beb6f09",
                        "650fb1c15bac936834a26aef477b192086e41df0c925ab7725aecd96f0f96209"
                    ],
                    [
                        "95d87b66c34a29083ca999e2bca831945848a48cab7c668d1abf375a4fd4b900",
                        "205220b48e66604e7e2502c1101c750ab84a9772f6c6e82d737c81de31ab5904"
                    ],
                    [
                        "08e051f8558c5f4b7cf0cfdb1851da8599855a006b87a2e00dc85692ba150908",
                        "c64b0cbb41bc53ed3d464c1a1931a8e84e7ca3b54022f6628d615edfff072709"
                    ],
                    [
                        "5f0c14befc7f51802766fe72d4416ddb7794c289b2f0c29290ba3bc5294a040c",
                        "5ce2fd62d59c5a8b54d68b7530b98ad4fd5cdc382640cf7286b25cdff1835f0c"
                    ],
                    [
                        "1c38551813e46f97c767587478de3637e327e6d787d28e976dac5fad01277f02",
                        "6abc04a97d095769c0f9d4a728caf5f4b3ffd6018067187c180b60013ef58109"
                    ],
                    [
                        "d59ee4df0654b30a14e42af80294ec3cdde90b35e35fb4cad5ee9cc7509cbf0a",
                        "a9329f43d5d841d15021d6946337d8be70c2b43aa9844366d3c3efac79608d08"
                    ],
                    [
                        "403622a42fe6ddae52a9b4613d7937a2c376a768427cdd40e77d32cbadf46905",
                        "307b231c78fc300f77ee446307ce21b9e7d11671f0b5cb5c6ea142f1b6c7a108"
                    ],
                    [
                        "a9f32fb3c3201ffc4514626bdeebf25378a6ab1dac35a5c3e1f5f7cdedb8160f",
                        "1d0f5ed5efd32384dd0daeb9aaaf2860aabf1a3484b0c6666ef64a425ca45906"
                    ],
                    [
                        "6dde6d36d9c172b1b6cdad10326532c1f9c07aee55411f5a6d22c8e49ac49d05",
                        "8fbd1de567451119ee1192e85102a0d15832d4d758e929293e5532c9effa0909"
                    ]
                ],
                "cc": "ac8ad6909a70d8219f7298f9dea0619a16ae1928747941a84f004578b8e4c606"
            }
        ],
        "pseudoOuts": [
            "9d61fe7695c35b7a9c259439a2a771140cdd8d6c40f8f9ac840ff9bad5edd34e"
        ]
    },
    "total_in": 0.03806305,
    "total_out": 0.03792920,
    "fee": 0.00013385
}

Response

Return Tx on Success

$tx = $xmrClient->sendToAddress([
    "address_id" => 1234,
    "private_spend_key" => "asdasd",
    "address" => "4AM2xJBDYwcLWGBFACg1BmcLTdjJ9FurbeDapj27MSxZK7oHf7TSQ9YjiP88CCMGtxFnjoZ6dsgh5a75rodXxhLxT8KPaTm",
    "amount" => 0.01
]);

or

$tx = $xmrClient->sendToAddress([
    "address_id" => 1234,
    "password" => "asdasd",
    "address" => "4AM2xJBDYwcLWGBFACg1BmcLTdjJ9FurbeDapj27MSxZK7oHf7TSQ9YjiP88CCMGtxFnjoZ6dsgh5a75rodXxhLxT8KPaTm",
    "amount" => 0.01
]);

GetTransaction

GET https://api.blocksdk.com/v1/xmr/transaction/{txHash}

Path Parameters

NameTypeDescription

txHash

string

transaction hash

{
    "as_hex": "02000102000bb3dc48fcad1da0f728f2baab01c6dd07ffe56a98ed03f4d59201b3f72e99cb55b0d31c20250ca47d35977675c843d549f27ee1ac6abb1fe77041ca9d5f587052e0a5080200024589a1551e70790ef8d08c710ae6b5f7fd541424a373d04f8830de881f67047400026b0add53a2be59dba6aca531b3e8f1c71f1c672cc7ac0b15d49d3faef916ae8b2c0209018308d5482eacac6f0117ef1638c724024a5f3112bf57350c4c174db677df95555b36d30cb8e1f0483a0490c7e93f8d70d720d17d0fc06d8d15662e7aa61a58b45cad7f3c093be8faa3eb93555891fd9e6165de1e236574a3b4d1a9a01a87a74eec3f83f813d23e7ec0f8a26d6a2d590464e18202fc4452a271350306cdbc012a781ca62b64e8695f62670cc2a3bb42592957a93508392ebe2f4546ce4c6a9bfd35685c176c9e33925206c63d8c88fc7101dfdf2605c5caa4715ae4232e4c4f1d973c172b34a1132b8e111f43411051b456d8926b2824138099bec5307109d1d6520ae4bf415a27b2ea03d7947b6332dd5df4326e3542ea5b9fe04e9d125646637a874c7d89a22f7a18bbef334e866a3d30c8bd9f317eb156e2ff8060c66f0d30f6eeeebe54cd0141974ca20c5311dd7418fffb9f9db7d86381e9bc9dfc28030704f7c43118f9ec097eea98a58f58ea8d47115adf7291b795c2818a16d8e9cd14243f8e340444ab32a0960fc1325659c9778a32752995418af70107f7c3f91b7dbfc673e6c29db3ef917d9d906f5e9f3a45179617fcc6d6bb0c7a9a42ee209c8dbd8a913983245c29542896b6f06d82cd624f369c47b33df67e428003959fb1e1e7b305caf16c7a6a13bba75397b6874630548b1556f080313d8606b507ca26ddf644509425a7e1c9aa4cedb73d8228fe6c59ad5fee3f8848ea766355a2358aa09b515ab1bb03f38ede153073ad215de81c050b53dfcc92e2309aca62f286291307e06ee260949d3ef712eb67edfa9ceaf67bd7d4a88cc63351cfafaaf2a8c63cf21783208ea588823382f705959c5e02bcf6f2ebd4010c50ebdc9636558f894823fbc699174b744fbc14a8811b9a47e121f9ce96ea406f4b1936e7ad605ad4c9ddb9227fdd9e7dd604e682b3b0f24ab6d00e7347ec8c74800e27c586ae06df6db148c4cc9cfb416c53e8dc31362c292c5a93c3ca09ca2e06879ebf6d27710dc10a6b7738633b87440acfe01b82062c4c8223752b64b164a9930cc9eaa51995fa62b401845a0e3568847028e37b49598faf9d948a95e9098e3a5faaaa4f2f3815c4afd217637883663ded6d0c71ee345ec60167d88603938a1a8a2d2279a74a1f0eed11a128f55e8272e6c25c1d6427bb37c7ac08dea3781e2bfa0a43f87289210630fcb0cce7809b2f25fe0caa191128b208e850cc9b8f97ff860b1e9dbc135705caea9028deeff58ed4a86b2a441f2000692ed8660dcebad13f07a91de579a100392cadf9e32646cfeb7001e3cea4be57440041f80b2f0f8a07edfb2e27907f0922d772e47832badcc081c8bb78458f98b0d0ba7b126d063dd7928cd08c394c08c6993af21128036a972b31aadf099930a00cb565f1b749c5b637b8b2f4c716007496c9e502f43c1b695987d7b295dc110e363af325764c11f570fc100216bf03f64a6fcae6ec23844dbd2f58b8df9947867334a4a2bb75357a07afb4afe5090e094763a94e54abd072a5bcd9ba8bb8d0ff0b8d053c5ff3aad387e0ef782996079ce799917a438b09d3097241d2d0e85ab7429b0454be2d89243eca465d1f6b05a46136ab418894f04c0a645f22690b514bfefe9c45322df08fb82c9bee95050d4e1984089e729ab762338b77ba88a2c9d93c761d67958a2d8590ad0e1c9d200b6158954dfb6dbbffd443b127fc98b8414ecd985ab456f570efbf3a896652640e2d1766eae206f4bc3b089e8c26ed53f4cf472942a806d322d1dd4fd08d75c809bd74c1c7a40d4fa4cd6c983147f1cf0a6b92f8dd6612a9bcf6fcc8e9cd441202e08ef2a80e514db4c738479d8a34420070fd85d86a2c2b5a21d0176a76a2dc00c956e3e1f6747f8743b7439b74aad5fc21da5c1d2b6f63bd007f0d1d1c8d080c470ff1ed71aa109237b482e08269b969b733d8636e89c4a665160b05c5f9e008b3b22f6db6ae21ced965977158cbf5447d5c7ae58c28e5044a653fe6fa3a6b0f538fcf54b3ba50609102005b6217bbfc778bb3c2e10f0b833cf719aab85927019f7cd5c71e2ed788ad5a67b35e064bdbe37081f7a2ed76ed2154facf647cd00adbb51424b7788e76923608aa0dcc764727645f36bccb8475a4ca6f3397a7ac05bf80e1ac12072bad65530ebc7b4977de1cbfe35b7625f3e5744880a2e48e7e01b4feff566deab0d04ff4923c04f1ca32fed5649ad578b17e5de51dbc87b2a305e12e719655af9e6ce7f6341578e9f9b884cb559f51eb00de83a852024a30ad04fa54446d8e75d9fc462f64771869cf8226d44427c0d71e9752790fa5ce2c12ed",
    "block_height": 1915593,
    "block_timestamp": 1567582027,
    "double_spend_seen": false,
    "in_pool": false,
    "output_indices": [
        12170642,
        12170643
    ],
    "prunable_as_hex": "",
    "prunable_hash": "700e3d6db3f911a7afea3f9c33dceb182d91b557c1d94cf9eabab950c3237f68",
    "pruned_as_hex": "",
    "tx_hash": "e5e58aff2d3acc7830998eed3fd410e2df33f2e28e5ccc09c36f5bcf5f8686b6",
    "data": {
        "version": 2,
        "unlock_time": 0,
        "vin": [
            {
                "key": {
                    "amount": 0,
                    "key_offsets": [
                        1191475,
                        481020,
                        670624,
                        2809202,
                        126662,
                        1749759,
                        63128,
                        2403060,
                        768947,
                        1402265,
                        469424
                    ],
                    "k_image": "20250ca47d35977675c843d549f27ee1ac6abb1fe77041ca9d5f587052e0a508"
                }
            }
        ],
        "vout": [
            {
                "amount": 0,
                "target": {
                    "key": "4589a1551e70790ef8d08c710ae6b5f7fd541424a373d04f8830de881f670474"
                }
            },
            {
                "amount": 0,
                "target": {
                    "key": "6b0add53a2be59dba6aca531b3e8f1c71f1c672cc7ac0b15d49d3faef916ae8b"
                }
            }
        ],
        "extra": [
            2,
            9,
            1,
            131,
            8,
            213,
            72,
            46,
            172,
            172,
            111,
            1,
            23,
            239,
            22,
            56,
            199,
            36,
            2,
            74,
            95,
            49,
            18,
            191,
            87,
            53,
            12,
            76,
            23,
            77,
            182,
            119,
            223,
            149,
            85,
            91,
            54,
            211,
            12,
            184,
            225,
            240,
            72,
            58
        ],
        "rct_signatures": {
            "type": 4,
            "txnFee": 133850000,
            "ecdhInfo": [
                {
                    "amount": "8d70d720d17d0fc0"
                },
                {
                    "amount": "6d8d15662e7aa61a"
                }
            ],
            "outPk": [
                "58b45cad7f3c093be8faa3eb93555891fd9e6165de1e236574a3b4d1a9a01a87",
                "a74eec3f83f813d23e7ec0f8a26d6a2d590464e18202fc4452a271350306cdbc"
            ]
        },
        "rctsig_prunable": {
            "nbp": 1,
            "bp": [
                {
                    "A": "2a781ca62b64e8695f62670cc2a3bb42592957a93508392ebe2f4546ce4c6a9b",
                    "S": "fd35685c176c9e33925206c63d8c88fc7101dfdf2605c5caa4715ae4232e4c4f",
                    "T1": "1d973c172b34a1132b8e111f43411051b456d8926b2824138099bec5307109d1",
                    "T2": "d6520ae4bf415a27b2ea03d7947b6332dd5df4326e3542ea5b9fe04e9d125646",
                    "taux": "637a874c7d89a22f7a18bbef334e866a3d30c8bd9f317eb156e2ff8060c66f0d",
                    "mu": "30f6eeeebe54cd0141974ca20c5311dd7418fffb9f9db7d86381e9bc9dfc2803",
                    "L": [
                        "04f7c43118f9ec097eea98a58f58ea8d47115adf7291b795c2818a16d8e9cd14",
                        "243f8e340444ab32a0960fc1325659c9778a32752995418af70107f7c3f91b7d",
                        "bfc673e6c29db3ef917d9d906f5e9f3a45179617fcc6d6bb0c7a9a42ee209c8d",
                        "bd8a913983245c29542896b6f06d82cd624f369c47b33df67e428003959fb1e1",
                        "e7b305caf16c7a6a13bba75397b6874630548b1556f080313d8606b507ca26dd",
                        "f644509425a7e1c9aa4cedb73d8228fe6c59ad5fee3f8848ea766355a2358aa0",
                        "9b515ab1bb03f38ede153073ad215de81c050b53dfcc92e2309aca62f2862913"
                    ],
                    "R": [
                        "e06ee260949d3ef712eb67edfa9ceaf67bd7d4a88cc63351cfafaaf2a8c63cf2",
                        "1783208ea588823382f705959c5e02bcf6f2ebd4010c50ebdc9636558f894823",
                        "fbc699174b744fbc14a8811b9a47e121f9ce96ea406f4b1936e7ad605ad4c9dd",
                        "b9227fdd9e7dd604e682b3b0f24ab6d00e7347ec8c74800e27c586ae06df6db1",
                        "48c4cc9cfb416c53e8dc31362c292c5a93c3ca09ca2e06879ebf6d27710dc10a",
                        "6b7738633b87440acfe01b82062c4c8223752b64b164a9930cc9eaa51995fa62",
                        "b401845a0e3568847028e37b49598faf9d948a95e9098e3a5faaaa4f2f3815c4"
                    ],
                    "a": "afd217637883663ded6d0c71ee345ec60167d88603938a1a8a2d2279a74a1f0e",
                    "b": "ed11a128f55e8272e6c25c1d6427bb37c7ac08dea3781e2bfa0a43f872892106",
                    "t": "30fcb0cce7809b2f25fe0caa191128b208e850cc9b8f97ff860b1e9dbc135705"
                }
            ],
            "MGs": [
                {
                    "ss": [
                        [
                            "caea9028deeff58ed4a86b2a441f2000692ed8660dcebad13f07a91de579a100",
                            "392cadf9e32646cfeb7001e3cea4be57440041f80b2f0f8a07edfb2e27907f09"
                        ],
                        [
                            "22d772e47832badcc081c8bb78458f98b0d0ba7b126d063dd7928cd08c394c08",
                            "c6993af21128036a972b31aadf099930a00cb565f1b749c5b637b8b2f4c71600"
                        ],
                        [
                            "7496c9e502f43c1b695987d7b295dc110e363af325764c11f570fc100216bf03",
                            "f64a6fcae6ec23844dbd2f58b8df9947867334a4a2bb75357a07afb4afe5090e"
                        ],
                        [
                            "094763a94e54abd072a5bcd9ba8bb8d0ff0b8d053c5ff3aad387e0ef78299607",
                            "9ce799917a438b09d3097241d2d0e85ab7429b0454be2d89243eca465d1f6b05"
                        ],
                        [
                            "a46136ab418894f04c0a645f22690b514bfefe9c45322df08fb82c9bee95050d",
                            "4e1984089e729ab762338b77ba88a2c9d93c761d67958a2d8590ad0e1c9d200b"
                        ],
                        [
                            "6158954dfb6dbbffd443b127fc98b8414ecd985ab456f570efbf3a896652640e",
                            "2d1766eae206f4bc3b089e8c26ed53f4cf472942a806d322d1dd4fd08d75c809"
                        ],
                        [
                            "bd74c1c7a40d4fa4cd6c983147f1cf0a6b92f8dd6612a9bcf6fcc8e9cd441202",
                            "e08ef2a80e514db4c738479d8a34420070fd85d86a2c2b5a21d0176a76a2dc00"
                        ],
                        [
                            "c956e3e1f6747f8743b7439b74aad5fc21da5c1d2b6f63bd007f0d1d1c8d080c",
                            "470ff1ed71aa109237b482e08269b969b733d8636e89c4a665160b05c5f9e008"
                        ],
                        [
                            "b3b22f6db6ae21ced965977158cbf5447d5c7ae58c28e5044a653fe6fa3a6b0f",
                            "538fcf54b3ba50609102005b6217bbfc778bb3c2e10f0b833cf719aab8592701"
                        ],
                        [
                            "9f7cd5c71e2ed788ad5a67b35e064bdbe37081f7a2ed76ed2154facf647cd00a",
                            "dbb51424b7788e76923608aa0dcc764727645f36bccb8475a4ca6f3397a7ac05"
                        ],
                        [
                            "bf80e1ac12072bad65530ebc7b4977de1cbfe35b7625f3e5744880a2e48e7e01",
                            "b4feff566deab0d04ff4923c04f1ca32fed5649ad578b17e5de51dbc87b2a305"
                        ]
                    ],
                    "cc": "e12e719655af9e6ce7f6341578e9f9b884cb559f51eb00de83a852024a30ad04"
                }
            ],
            "pseudoOuts": [
                "fa54446d8e75d9fc462f64771869cf8226d44427c0d71e9752790fa5ce2c12ed"
            ]
        }
    }
}

Response

$tx = $xmrClient->getTransaction([
    "hash" => "414ce4e812fa34ef45684bae61bacc5c26c1924fe02f7ee01c39e4cf0c6f11be"
]);

Return Tx on Success

LoadAddress

POST https://api.blocksdk.com/v1/xmr/address/{address_id}/load

Load your address. The loaded address does not require private_key when using SendToAddress

Path Parameters

NameTypeDescription

address_id

number

Monero Address ID

Request Body

NameTypeDescription

password

string

Used when trading

private_spend_key

string

Address private spend key

[]
$load = $xmrClient->loadAddress([
    "address_id" => 99,
    "private_spend_key" => "abcdefg",
    "password" => "abcdefg"
]);

UnloadAddress

POST https://api.blocksdk.com/v1/xmr/address/{address}/unload

Path Parameters

NameTypeDescription

address

number

Monero Address ID

[]
$unload = $xmrClient->unloadAddress([
    "address_id" => 99
]);

Last updated