SlideShare a Scribd company logo
1 of 1
Download to read offline
genesisBlock: BitcoinBlock
returns thegenesis block
richestAccounts(paging: PageInput):
PagedBitcoinAccounts
returns richest accounts, order by balance
transactionByHash(hash: String!): BitcoinTransaction
returns a transaction by its hash
transactionByIndex(
blockHash: String
blockHeight: Int
index: Int!
): BitcoinTransaction
returns a transaction within a blockby giving the
blockhash or height and thetransactions index
transactionsByAddress(
paging: PageInput
receiver: String
sender: String
): PagedBitcoinTransactions
returns transactions with paginations
transactionsByIndex(
blockHash: String
blockHeight: Int
fromIndex: Int
paging: PageInput
toIndex: Int
): PagedBitcoinTransactions
returns transactions within a blockby giving theblock
hash or height and therangeof thetransaction index
zeroFeesBlocks(
fromHeight: Int!
paging: PageInput
toHeight: Int
): PagedBitcoinBlocks
OCAP GraphQL Cheat Sheet
bigTransactionExecuted: BitcoinTransaction
return transaction data oncea big transaction happens.
Thethreshold is 100 Bitcoin
coinReceived(address: String!): BitcoinTransaction
return transaction oncean address receives a Bitcoin
coinSent(address: String!): BitcoinTransaction
return a transaction oncean address sends a Bitcoin
newBlockMined: BitcoinBlock
return blockdata oncea new blockis mined
References
RootQueryType
SubscriptionQueryType
A definitive guide to express your OCAP queries succinctly
Last updated: 19 August, 2018
Data Types
accountByAddress(address: String!): BitcoinAccount
returns information of an account
blockByHash(hash: String!): BitcoinBlock
returns a blockby its hash
blockByHeight(height: Int!): BitcoinBlock
returns a blockby its height
blocksByHeight(
fromHeight: Int!
paging: PageInput
toHeight: Int):
PagedBitcoinBlocks
returns blocks with paginations based on their height
emptyBlocks(
fromHeight: Int!
paging: PageInput
toHeight: Int
): PagedBitcoinBlocks
returns blocks containing only coinbasetransactions
RootQueryType
BitcoinBlock object implements Block
interfere for Bitcoin chain
bits: Int!
fees: Int!
hash: String!
height: Int!
medianTime: DateTime
merkleRoot: String!
miner: BitcoinAccount
nonce: Int!
numberTxs: Int!
preHash: String!
priceInUsd: Float
reward: Int!
size: Int!
strippedSize: Int!
time: DateTime!
total: Int!
transactions(paging: PageInput):
PagedBitcoinTransactions
version: Int!
weight: Int!
theBitcoinAccountobject implements
theAccount interfacefor theBitcoin
chain
address: String!
balance: Int
numberTxsReceived: Int
numberTxsSent: Int
priceInUsd: Float
pubKey: String
scriptType: String
subKeys: [String]
totalAmountReceived: Int
totalAmountSent: Int
txsReceived(paging: PageInput):
PagedBitcoinTransactions
txsSent(paging: PageInput):
PagedBitcoinTransactions
Data Types
TheBitcoinTransaction objects
implements Transaction interfacefor
Bitcoin chain
blockHash: String!
blockHeight: Int!
fees: Int!
feesOverWeight: Float!
hash: String!
index: Int!
inputs(paging: PageInput):
PagedTransactionInputs
lockTime: Int!
numberInputs: Int!
numberOutputs: Int!
outputs(paging: PageInput):
PagedTransactionOutputs
priceInUsd: Float
size: Int!
strippedSize: Int!
total: Int!
version: Int!
virtualSize: Int!
weight: Int!
witnessHash: String!
Slack Channel: #hackathon
Github: www.github.com/arcblock
Email: info@arcblock.io
OCAP:
https://ocap.arcblock.io
https://ocap.arcblock.io/playbooks
https://ocap.arcblock.io/docs
Support:
https://arcblock.zendesk.com
Social:
Twitter: @arcblock_io
Telegram: /arcblock
Facebook: /arcblock
WeChat
SDK:
Java:
https://github.com/ArcBlock/ocap-
javascript-sdk
Apollo-ios:
https://github.com/ArcBlock/apollo-ios
Reference

More Related Content

More from Matthew McKinney

Introduction to Expression Cloud Development Framework for Developers and Mar...
Introduction to Expression Cloud Development Framework for Developers and Mar...Introduction to Expression Cloud Development Framework for Developers and Mar...
Introduction to Expression Cloud Development Framework for Developers and Mar...Matthew McKinney
 
What is this thing called OpenStack
What is this thing called OpenStackWhat is this thing called OpenStack
What is this thing called OpenStackMatthew McKinney
 
Cloud onboarding and Application Onboarding on AURO Canadian Cloud Computing
Cloud onboarding and Application Onboarding on AURO Canadian Cloud ComputingCloud onboarding and Application Onboarding on AURO Canadian Cloud Computing
Cloud onboarding and Application Onboarding on AURO Canadian Cloud ComputingMatthew McKinney
 
AURO Cloud Computing Removes cloud lock-in
AURO Cloud Computing Removes cloud lock-inAURO Cloud Computing Removes cloud lock-in
AURO Cloud Computing Removes cloud lock-inMatthew McKinney
 
AURO Cloud Computing Discussion on OpenStack User Survey
AURO Cloud Computing Discussion on OpenStack User SurveyAURO Cloud Computing Discussion on OpenStack User Survey
AURO Cloud Computing Discussion on OpenStack User SurveyMatthew McKinney
 
AURO Canadian Cloud Computing
AURO Canadian Cloud ComputingAURO Canadian Cloud Computing
AURO Canadian Cloud ComputingMatthew McKinney
 

More from Matthew McKinney (6)

Introduction to Expression Cloud Development Framework for Developers and Mar...
Introduction to Expression Cloud Development Framework for Developers and Mar...Introduction to Expression Cloud Development Framework for Developers and Mar...
Introduction to Expression Cloud Development Framework for Developers and Mar...
 
What is this thing called OpenStack
What is this thing called OpenStackWhat is this thing called OpenStack
What is this thing called OpenStack
 
Cloud onboarding and Application Onboarding on AURO Canadian Cloud Computing
Cloud onboarding and Application Onboarding on AURO Canadian Cloud ComputingCloud onboarding and Application Onboarding on AURO Canadian Cloud Computing
Cloud onboarding and Application Onboarding on AURO Canadian Cloud Computing
 
AURO Cloud Computing Removes cloud lock-in
AURO Cloud Computing Removes cloud lock-inAURO Cloud Computing Removes cloud lock-in
AURO Cloud Computing Removes cloud lock-in
 
AURO Cloud Computing Discussion on OpenStack User Survey
AURO Cloud Computing Discussion on OpenStack User SurveyAURO Cloud Computing Discussion on OpenStack User Survey
AURO Cloud Computing Discussion on OpenStack User Survey
 
AURO Canadian Cloud Computing
AURO Canadian Cloud ComputingAURO Canadian Cloud Computing
AURO Canadian Cloud Computing
 

Recently uploaded

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 

Recently uploaded (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 

ArcBlock Developers GraphQL Cheat Sheet for OCAP Playground

  • 1. genesisBlock: BitcoinBlock returns thegenesis block richestAccounts(paging: PageInput): PagedBitcoinAccounts returns richest accounts, order by balance transactionByHash(hash: String!): BitcoinTransaction returns a transaction by its hash transactionByIndex( blockHash: String blockHeight: Int index: Int! ): BitcoinTransaction returns a transaction within a blockby giving the blockhash or height and thetransactions index transactionsByAddress( paging: PageInput receiver: String sender: String ): PagedBitcoinTransactions returns transactions with paginations transactionsByIndex( blockHash: String blockHeight: Int fromIndex: Int paging: PageInput toIndex: Int ): PagedBitcoinTransactions returns transactions within a blockby giving theblock hash or height and therangeof thetransaction index zeroFeesBlocks( fromHeight: Int! paging: PageInput toHeight: Int ): PagedBitcoinBlocks OCAP GraphQL Cheat Sheet bigTransactionExecuted: BitcoinTransaction return transaction data oncea big transaction happens. Thethreshold is 100 Bitcoin coinReceived(address: String!): BitcoinTransaction return transaction oncean address receives a Bitcoin coinSent(address: String!): BitcoinTransaction return a transaction oncean address sends a Bitcoin newBlockMined: BitcoinBlock return blockdata oncea new blockis mined References RootQueryType SubscriptionQueryType A definitive guide to express your OCAP queries succinctly Last updated: 19 August, 2018 Data Types accountByAddress(address: String!): BitcoinAccount returns information of an account blockByHash(hash: String!): BitcoinBlock returns a blockby its hash blockByHeight(height: Int!): BitcoinBlock returns a blockby its height blocksByHeight( fromHeight: Int! paging: PageInput toHeight: Int): PagedBitcoinBlocks returns blocks with paginations based on their height emptyBlocks( fromHeight: Int! paging: PageInput toHeight: Int ): PagedBitcoinBlocks returns blocks containing only coinbasetransactions RootQueryType BitcoinBlock object implements Block interfere for Bitcoin chain bits: Int! fees: Int! hash: String! height: Int! medianTime: DateTime merkleRoot: String! miner: BitcoinAccount nonce: Int! numberTxs: Int! preHash: String! priceInUsd: Float reward: Int! size: Int! strippedSize: Int! time: DateTime! total: Int! transactions(paging: PageInput): PagedBitcoinTransactions version: Int! weight: Int! theBitcoinAccountobject implements theAccount interfacefor theBitcoin chain address: String! balance: Int numberTxsReceived: Int numberTxsSent: Int priceInUsd: Float pubKey: String scriptType: String subKeys: [String] totalAmountReceived: Int totalAmountSent: Int txsReceived(paging: PageInput): PagedBitcoinTransactions txsSent(paging: PageInput): PagedBitcoinTransactions Data Types TheBitcoinTransaction objects implements Transaction interfacefor Bitcoin chain blockHash: String! blockHeight: Int! fees: Int! feesOverWeight: Float! hash: String! index: Int! inputs(paging: PageInput): PagedTransactionInputs lockTime: Int! numberInputs: Int! numberOutputs: Int! outputs(paging: PageInput): PagedTransactionOutputs priceInUsd: Float size: Int! strippedSize: Int! total: Int! version: Int! virtualSize: Int! weight: Int! witnessHash: String! Slack Channel: #hackathon Github: www.github.com/arcblock Email: info@arcblock.io OCAP: https://ocap.arcblock.io https://ocap.arcblock.io/playbooks https://ocap.arcblock.io/docs Support: https://arcblock.zendesk.com Social: Twitter: @arcblock_io Telegram: /arcblock Facebook: /arcblock WeChat SDK: Java: https://github.com/ArcBlock/ocap- javascript-sdk Apollo-ios: https://github.com/ArcBlock/apollo-ios Reference