Ethereum
Create Ethereum Client
Object
Tx
Name
Type
Content
hash
string
hash of the transaction.
from
string
address of the sender.
to
string
address of the receiver.
contract_address
string
If it is a contract, the contract address is displayed.
value
double
value transferred in Wei.
erc20_value
double
In case of erc20 token transaction, the transaction amount is displayed.
gas_used
int
The exact units of gas that was used for the transaction.
gas_limit
int
Maximum amount of gas provided for the transaction.
gas_price
double
gas price provided by the sender in Wei.
fee_total
double
Transaction fee
nonce
int
the number of transactions made by the sender prior to this one.
transaction_index
int
integer of the transaction's index position in the block
input
string
the data send along with the transaction.
block_hash
string
block hash where this transaction was in.
block_height
int
block number where this transaction was in.
confirmations
int
Transaction Confirmation Count
time
int
The time contained in the block
status
string
The status of the transaction.
GetBlockChain
GET
https://api.blocksdk.com/v1/eth/block
Response
Nmae
Type
Content
height
int
number of most recent block.
bestblockhash
string
hash of most recent block.
prev_hash
string
Previous block hash of the most recent block
unconfirmed_count
int
Unconfirmed Transaction Count
low_gwei
char
Low Priority (7+ blocks)
medium_gwei
char
Medium Priority (3-6 blocks)
high_gwei
char
High Priority (1-2 blocks)
GetBlock
GET
https://api.blocksdk.com/v1/eth/block/{block}
Path Parameters
block
string
Block number or hash
Query Parameters
rawtx
boolean
Get transaction details
limit
number
Number of transactions to import
offset
number
Transaction List Offset
Request Body
string
Response
Name
Type
Content
hash
string
hash of the block
height
int
the block number
extra_data
string
the "extra data" field of this block
gas_limit
int
the maximum gas allowed in this block
gas_used
int
the total used gas by all transactions in this block
miner
string
the address of the beneficiary to whom the mining rewards were given.
tx
array
Transaction contained in the block
tx_count
int
The number of transactions contained in the block
total_value
double
Total transaction amount included in the block
fee_total
double
Total transaction fee
reward
int
Block Mining Reward
size
int
integer the size of this block in bytes.
nonce
int
hash of the generated proof-of-work.
confirmations
int
Block Confirmation Count
time
int
The date and time at which a block is mined.
prev_hash
string
Previous block hash
next_hash
string
Next block hash
GetMemPool
GET
https://api.blocksdk.com/v1/eth/mempool
Query Parameters
rawtx
boolean
Get transaction details
offset
number
Transaction List Offset
limit
number
Number of transactions to import
ListAddress
GET
https://api.blocksdk.com/v1/eth/address
Query Parameters
limit
string
Number of Address to import
offset
string
Address List offset
Response
Name
type
Content
array
List of created addresses
CraeteAddress
POST
https://api.blocksdk.com/v1/eth/address
Request Body
name
string
Address name
Response
Name
Type
Content
id
int
Generated unique id
address
string
Generated address
private_key
string
Private key of generated address(BlockSDK is not stored on the server)
GetAddressInfo
GET
https://api.blocksdk.com/v1/eth/address/{address}
Path Parameters
address
string
Ethereum Address
Query Parameters
reverse
boolean
Reverse transaction information
rawtx
boolean
Get transaction details
offset
number
Transaction List Offset
limit
number
Number of Transaction to import
Response
Name
Type
Content
address
string
Ethereum Address
nonce
int
number of transactions sent from an address.
tx
array
Transaction originated from address
tx_count
int
The number of transactions that occurred at the address
received_count
int
The number of transactions received from the address
received_total
double
Transaction amount received from the address
received_unconfirmed
double
Transaction amount not included in the block received from the address
spent_count
int
The number of transactions spent from the address
spent_total
double
Transaction amount spent from the address
spent_unconfirmed
double
Transaction amount not included in the block spent from the address
balance
double
Remaining balance
unconfirmed_balance
double
Transaction balance not included in block at address
unconfirmed_count
int
Transaction count not included in address block
first_time
int
First Deal Creation Time at Address
last_time
int
Last transaction creation time from address
GetAddressBalance
GET
https://api.blocksdk.com/v1/eth/address/{address}/balance
Path Parameters
address
string
Ethereum Address
Response
Name
Type
Content
address
string
Ethereum Address
balance
double
Balance of the address
unconfirmed_balance
double
Balance of transactions not included in the block of addresses
SendToAddress
POST
https://api.blocksdk.com/v1/eth/address/{from}/sendtoaddress
Path Parameters
from
string
Ethereum Address
Request Body
password
string
If it is a loaded Ethereum address, this value is required and you can enter the password used to load it.
gas_limit
number
Maximum amount of gas provided for the transaction(default 90000)
address
string
Address to receive Ethereum
amount
string
Amount of Ethereum to send
private_key
string
Ethereum address that has not been loaded requires this value and is issued when generating the Ethereum address.
gwei
string
fee to be used for transactions
Response
Return Tx on Success
SendTransaction
POST
https://api.blocksdk.com/v1/eth/transaction
Request Body
sign_hex
string
signed transaction hex
Response
Return Tx on Success
GetTransaction
GET
https://api.blocksdk.com/v1/eth/transaction/{hash}
Path Parameters
hash
string
transaction hash
Response
Return Tx on Success
LoadAddress
POST
https://api.blocksdk.com/v1/eth/address/{address}/load
Load your address. The loaded address does not require private_key when using SendToAddress
Path Parameters
address
number
Ethereum Address
Request Body
password
string
Used when trading
private_key
string
Address private key
UnloadAddress
POST
https://api.blocksdk.com/v1/eth/address/{address}/unload
Path Parameters
address
number
Ethereum Address
Last updated
Was this helpful?