SlideShare a Scribd company logo
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 OpenStack
Matthew 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 Computing
Matthew 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-in
Matthew 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 Survey
Matthew McKinney
 
AURO Canadian Cloud Computing
AURO Canadian Cloud ComputingAURO Canadian Cloud Computing
AURO Canadian Cloud Computing
Matthew 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

Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 

Recently uploaded (20)

Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.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