Monero
Craete Monero Client
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
Name | Type | Description |
---|---|---|
string |
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) |
GetBlock
GET
http://api.blocksdk.com/v1/xmr/block/{block}
Path Parameters
Name | Type | Description |
---|---|---|
block | string | 블록 해쉬 |
Query Parameters
Name | Type | Description |
---|---|---|
rawtx | boolean | Get transaction details |
limit | integer | Number of transactions to import |
offset | integer | Transaction List Offset |
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 |
GetMemPool
GET
https://api.blocksdk.com/v1/xmr/mempool
Query Parameters
Name | Type | Description |
---|---|---|
rawtx | boolean | Get transaction details |
offset | number | Transaction List Offset |
limit | number | Number of transactions to import |
ListAddress
GET
https://api.blocksdk.com/v1/xmr/address
Query Parameters
Name | Type | Description |
---|---|---|
limit | number | Number of Address to import |
offset | number | Address List offset |
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 |
CreateAddress
POST
https://api.blocksdk.com/v1/xmr/address
Request Body
Name | Type | Description |
---|---|---|
name | string | Name to give address |
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 |
GetAddressInfo
GET
https://api.blocksdk.com/v1/xmr/address/{address_id}
Path Parameters
Name | Type | Description |
---|---|---|
address_id | number | Address unique ID |
Request Body
Name | Type | Description |
---|---|---|
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 |
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 |
GetAddressBalance
GET
https://api.blocksdk.com/v1/xmr/address/{address_id}/balance
Path Parameters
Name | Type | Description |
---|---|---|
address_id | string | Address unique ID |
Request Body
Name | Type | Description |
---|---|---|
private_spend_key | string | If not loaded, the private_spend_key value is required. |
password | string | If loaded, password is required. |
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 |
SendToAddress
POST
https://api.blocksdk.com/v1/xmr/address/{address_id}/sendtoaddress
Path Parameters
Name | Type | Description |
---|---|---|
address_id | number | Address unique ID |
Request Body
Name | Type | Description |
---|---|---|
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 |
Response
Return Tx on Success
GetTransaction
GET
https://api.blocksdk.com/v1/xmr/transaction/{txHash}
Path Parameters
Name | Type | Description |
---|---|---|
txHash | string | transaction hash |
Response
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
Name | Type | Description |
---|---|---|
address_id | number | Monero Address ID |
Request Body
Name | Type | Description |
---|---|---|
password | string | Used when trading |
private_spend_key | string | Address private spend key |
UnloadAddress
POST
https://api.blocksdk.com/v1/xmr/address/{address}/unload
Path Parameters
Name | Type | Description |
---|---|---|
address | number | Monero Address ID |
Last updated