hmy_getStakingTransactionByBlockNumberAndIndex
hmy_getStakingTransactionByBlockNumberAndIndex
Get staking transaction at an index from a given block, specified by number.
API v1
Parameters
String
- The block's index in the chain.String
- The staking transactions index position.
Returns
hash
-String
: Hash of the transaction.nonce
-Number
: The number of transactions made by the sender prior to this one.blockHash
-String
: Hash of the block where this transaction was in.null
when its pending.blockNumber
-Number
: Block number where this transaction was in.null
when its pending.transactionIndex
-Number
: Integer of the transactions index position in the block.null
when its pending.timestamp
-Number
: transaction timestampfrom
-String
: Address of the sender.value
-String
: Value transferred in ATTO.gasPrice
-String
: Gas price provided by the sender.gas
-Number
: Gas provided by the sender.v
-String
: signature Vr
-String
: signature Rs
-
: signature SStringtype
-String
: staking transaction type ("CreateValidator", "EditValidator", "CollectRewards", "Undelegate", "Delegate")msg
-StakingMsg:
CreateValidator:
validatorAddress
-String:
validator addressname
-String:
validator namecommissionRate
-Number
: validator commission ratemaxCommissionRate
-Number
: validator commission ratemaxChangeRate
-Number
: validator max commission rate changeminSelfDelegation
-Number
: min how much validator self delegatesmaxTotalDelegation
-Number
: max total delegation to validatoramount
-Number
: stake amount for validatorwebsite
-String
: validator websiteidentity
-String
: validator kyc identitysecurityContact
-String
: validator security contactdetails
-String
: additional validator infoslotPubKeys
-[]String
: validator bls pub keys
EditValidator:
validatorAddress
-String:
validator addressname
-String
: validator namecommissionRate
-Number
: validator commission rateminSelfDelegation
-Number
: min how much validator self delegatesmaxTotalDelegation
-Number
: max total delegation to validatorwebsite
-String
: validator websiteidentity
-String
: validator kyc identitysecurityContact
-String
: validator security contactdetails
-String
: additional validator infoslotPubKeyToAdd
-String
: validator bls pub key to addslotPubKeyToRemove
-String
: validator bls pub key to remove
CollectRewards:
delegatorAddress
-String
: address to send rewards
Delegate:
delegatorAddress
-String:
delegation delegator addressvalidatorAddress
-String:
delegation validator addressamount
-Number
: big.Int amount for delegation to validator
Undelegate:
delegatorAddress
-String
: undelegation delegator addressvalidatorAddress
-String
: undelegation validator addressamount
-Number
: big.Int amount for undelegation to delegator
Sample Curl Request
Sample Curl Response
API v2
Parameters
Number
- The block's index in the chain.Number
- The transactions index position.
Returns
hash
-String
: Hash of the transaction.nonce
-Number
: The number of transactions made by the sender prior to this one.blockHash
-String
: Hash of the block where this transaction was in.null
when its pending.blockNumber
-Number
: Block number where this transaction was in.null
when its pending.transactionIndex
-Number
: Integer of the transactions index position in the block.null
when its pending.timestamp
-Number
: transaction timestampfrom
-String
: Address of the sender.value
-String
: Value transferred in ATTO.gasPrice
-String
: Gas price provided by the sender.gas
-Number
: Gas provided by the sender.v
-String
: signature Vr
-String
: signature Rs
-
: signature SStringtype
-String
: staking transaction type ("CreateValidator", "EditValidator", "CollectRewards", "Undelegate", "Delegate")msg
-StakingMsg:
CreateValidator:
validatorAddress
-String:
validator addressname
-String:
validator namecommissionRate
-Number
: validator commission ratemaxCommissionRate
-Number
: validator commission ratemaxChangeRate
-Number
: validator max commission rate changeminSelfDelegation
-Number
: min how much validator self delegatesmaxTotalDelegation
-Number
: max total delegation to validatoramount
-Number
: stake amount for validatorwebsite
-String
: validator websiteidentity
-String
: validator kyc identitysecurityContact
-String
: validator security contactdetails
-String
: additional validator infoslotPubKeys
-[]String
: validator bls pub keys
EditValidator:
validatorAddress
-String:
validator addressname
-String
: validator namecommissionRate
-Number
: validator commission rateminSelfDelegation
-Number
: min how much validator self delegatesmaxTotalDelegation
-Number
: max total delegation to validatorwebsite
-String
: validator websiteidentity
-String
: validator kyc identitysecurityContact
-String
: validator security contactdetails
-String
: additional validator infoslotPubKeyToAdd
-String
: validator bls pub key to addslotPubKeyToRemove
-String
: validator bls pub key to remove
CollectRewards:
delegatorAddress
-String
: address to send rewards
Delegate:
delegatorAddress
-String:
delegation delegator addressvalidatorAddress
-String:
delegation validator addressamount
-Number
: big.Int amount for delegation to validator
Undelegate:
delegatorAddress
-String
: undelegation delegator addressvalidatorAddress
-String
: undelegation validator addressamount
-Number
: big.Int amount for undelegation to delegator
Sample Curl Request
Sample Curl Response
Last updated