中文版文档请猛击 btc.cn.md
Raw Query also tells us the shape of the response
- address, required, The address generated based on the public key of the account.
{
accountByAddress(address: "abc") {
address
balance
numberTxsReceived
numberTxsSent
priceInUsd
pubKey
scriptType
subKeys
totalAmountReceived
totalAmountSent
transactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
}
- hash, required, The hash of the block.
{
blockByHash(hash: "abc") {
bits
fees
hash
height
historyPrice
medianTime
merkleRoot
nonce
numberTxs
preHash
priceInUsd
reward
size
strippedSize
time
total
version
weight
miner {
address
balance
numberTxsReceived
numberTxsSent
priceInUsd
pubKey
scriptType
subKeys
totalAmountReceived
totalAmountSent
}
transactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
}
- height, required, The number of blocks ahead of this block.
{
blockByHeight(height: 123) {
bits
fees
hash
height
historyPrice
medianTime
merkleRoot
nonce
numberTxs
preHash
priceInUsd
reward
size
strippedSize
time
total
version
weight
miner {
address
balance
numberTxsReceived
numberTxsSent
priceInUsd
pubKey
scriptType
subKeys
totalAmountReceived
totalAmountSent
}
transactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
}
- instance, required, The name of the blockchain instance.
{
blockchainInfo(instance: "abc") {
avgBlockGap
avgFees
avgFeesOverWeight
avgTotal
consensus
instance
latestHash
latestHeight
latestUpdateTime
name
blocks {
data {
bits
fees
hash
height
historyPrice
medianTime
merkleRoot
nonce
numberTxs
preHash
priceInUsd
reward
size
strippedSize
time
total
version
weight
miner {
address
balance
numberTxsReceived
numberTxsSent
priceInUsd
pubKey
scriptType
subKeys
totalAmountReceived
totalAmountSent
}
transactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
}
- endDate, required, the end_date of the interval
- paging, optional, Describes which page of data to return.
- startDate, required, the start_date of the interval
- token, required, the name of the token
{
cryptoHistoryPrice(endDate: "2019-02-15T06:47:33.250Z", startDate: "2019-02-15T06:47:33.250Z", token: "abc") {
data {
date
price
}
page {
cursor
next
total
}
}
}
- paging, optional, Describes which page of data to return.
- timeFilter, optional, Filters the records by block height or time.
{
emptyBlocks {
data {
bits
fees
hash
height
historyPrice
medianTime
merkleRoot
nonce
numberTxs
preHash
priceInUsd
reward
size
strippedSize
time
total
version
weight
miner {
address
balance
numberTxsReceived
numberTxsSent
priceInUsd
pubKey
scriptType
subKeys
totalAmountReceived
totalAmountSent
}
transactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
No arguments
{
genesisBlock {
bits
fees
hash
height
historyPrice
medianTime
merkleRoot
nonce
numberTxs
preHash
priceInUsd
reward
size
strippedSize
time
total
version
weight
miner {
address
balance
numberTxsReceived
numberTxsSent
priceInUsd
pubKey
scriptType
subKeys
totalAmountReceived
totalAmountSent
}
transactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
}
- paging, optional, Describes which page of data to return.
- timeFilter, optional, Filters the records by block height or time.
{
listBlocks {
data {
bits
fees
hash
height
historyPrice
medianTime
merkleRoot
nonce
numberTxs
preHash
priceInUsd
reward
size
strippedSize
time
total
version
weight
miner {
address
balance
numberTxsReceived
numberTxsSent
priceInUsd
pubKey
scriptType
subKeys
totalAmountReceived
totalAmountSent
}
transactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
- addressFilter, optional, Filter the records by addresses.
- paging, optional, Describes which page of data to return.
- timeFilter, optional, Filters the records by block height or time.
{
listTransactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
- paging, optional, Describes which page of data to return.
{
richestAccounts {
data {
address
balance
numberTxsReceived
numberTxsSent
priceInUsd
pubKey
scriptType
subKeys
totalAmountReceived
totalAmountSent
transactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
- hash, required, The hash of the transaction to return.
{
transactionByHash(hash: "abc") {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
}
- blockHash, optional, The hash of the block containing the target transaction.
- blockHeight, optional, The height of the block containing the target transaction.
- index, required, The index of the transaction insdie the block.
{
transactionByIndex(index: 123) {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
}
- paging, optional, Describes which page of data to return.
- receiver, optional, Specifies the receiver's address.
- sender, optional, Specifies the sender's address.
{
transactionsByAddress {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
- blockHash, optional, The hash of the block containing the target transactions.
- blockHeight, optional, The height of the block containing the target transactions.
- fromIndex, optional, The index of the transaction from which to return.
- paging, optional, Describes which page of data to return.
- toIndex, optional, The index of the transaction to which to return.
{
transactionsByIndex {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
- paging, optional, Describes which page of data to return.
- timeFilter, optional, Filters the records by block height or time.
{
zeroFeesBlocks {
data {
bits
fees
hash
height
historyPrice
medianTime
merkleRoot
nonce
numberTxs
preHash
priceInUsd
reward
size
strippedSize
time
total
version
weight
miner {
address
balance
numberTxsReceived
numberTxsSent
priceInUsd
pubKey
scriptType
subKeys
totalAmountReceived
totalAmountSent
}
transactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
No arguments
subscription {
bigTransactionExecuted {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
}
- address, required,
subscription {
coinReceived(address: "abc") {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
}
- address, required,
subscription {
coinSent(address: "abc") {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
}
No arguments
subscription {
newBlockMined {
bits
fees
hash
height
historyPrice
medianTime
merkleRoot
nonce
numberTxs
preHash
priceInUsd
reward
size
strippedSize
time
total
version
weight
miner {
address
balance
numberTxsReceived
numberTxsSent
priceInUsd
pubKey
scriptType
subKeys
totalAmountReceived
totalAmountSent
}
transactions {
data {
blockHash
blockHeight
fees
feesOverWeight
hash
historyPrice
index
lockTime
numberInputs
numberOutputs
priceInUsd
size
strippedSize
time
total
version
virtualSize
weight
witnessHash
inputs {
data {
account
blockHash
blockHeight
index
preOutput
preTx
script
scriptType
sequence
txHash
txIndex
value
}
page {
cursor
next
total
}
}
outputs {
data {
account
blockHash
blockHeight
index
script
scriptType
txHash
txIndex
value
}
page {
cursor
next
total
}
}
}
page {
cursor
next
total
}
}
}
}
No Mutations supported yet.
Name | Website |
---|---|
wangshijun | https://ocap.arcblock.io |