Type aliases
Block
Block
: { hash
: Scalars["Hash"]; header
: BlockHeader; orderedTxHashes
: Array<Scalars["Hash"]> }
Type declaration
-
hash: Scalars["Hash"]
-
-
orderedTxHashes: Array<Scalars["Hash"]>
BlockHeader
Block
Header: { chainId: Scalars["Hash"]; confirmRoot: Array<Scalars["Hash"]>; cyclesUsed: Array<Scalars["Uint64"]>; execHeight: Scalars["Uint64"]; height: Scalars["Uint64"]; orderRoot: Scalars["Hash"]; orderSignedTransactionsHash: Scalars["Hash"]; prevHash: Scalars["Hash"]; proof: Proof; proposer: Scalars["Address"]; receiptRoot: Array<Scalars["Hash"]>; stateRoot: Scalars["Hash"]; timestamp: Scalars["Uint64"]; validatorVersion: Scalars["Uint64"]; validators: Array<Validator> }
Type declaration
-
chainId: Scalars["Hash"]
-
confirmRoot: Array<Scalars["Hash"]>
-
cyclesUsed: Array<Scalars["Uint64"]>
-
execHeight: Scalars["Uint64"]
-
height: Scalars["Uint64"]
-
orderRoot: Scalars["Hash"]
-
orderSignedTransactionsHash: Scalars["Hash"]
-
prevHash: Scalars["Hash"]
-
-
proposer: Scalars["Address"]
-
receiptRoot: Array<Scalars["Hash"]>
-
stateRoot: Scalars["Hash"]
-
timestamp: Scalars["Uint64"]
-
validatorVersion: Scalars["Uint64"]
-
validators: Array<Validator>
Event
Event: { data: Scalars["String"]; name: Scalars["String"]; service: Scalars["String"] }
Type declaration
-
data: Scalars["String"]
-
name: Scalars["String"]
-
service: Scalars["String"]
Exact
Exact<T>: {}
Type parameters
GetBlockQuery
Get
BlockQuery: { getBlock?: Maybe<{} & { header: {} & { proof: Pick<Proof, "bitmap" | "blockHash" | "height" | "round" | "signature">; validators: Array<Pick<Validator, "pubkey" | "proposeWeight" | "voteWeight">> } }> }
Type declaration
-
Optional getBlock?: Maybe<{} & { header: {} & { proof: Pick<Proof, "bitmap" | "blockHash" | "height" | "round" | "signature">; validators: Array<Pick<Validator, "pubkey" | "proposeWeight" | "voteWeight">> } }>
GetBlockQueryVariables
Get
BlockQueryVariables: Exact<{ height?: Maybe<Scalars["Uint64"]> }>
GetReceiptQuery
Get
ReceiptQuery: { getReceipt?: Maybe<{} & { events: Array<Pick<Event, "data" | "name" | "service">>; response: {} & { response: Pick<ServiceResponse, "code" | "errorMessage" | "succeedData"> } }> }
Type declaration
-
Optional getReceipt?: Maybe<{} & { events: Array<Pick<Event, "data" | "name" | "service">>; response: {} & { response: Pick<ServiceResponse, "code" | "errorMessage" | "succeedData"> } }>
GetReceiptQueryVariables
Get
ReceiptQueryVariables: Exact<{ txHash: Scalars["Hash"] }>
GetTransactionQuery
Get
TransactionQuery: { getTransaction?: Maybe<{} & {}> }
Type declaration
-
Optional getTransaction?: Maybe<{} & {}>
GetTransactionQueryVariables
Get
TransactionQueryVariables: Exact<{ txHash: Scalars["Hash"] }>
InputRawTransaction
InputRawTransaction: { chainId: Scalars["Hash"]; cyclesLimit: Scalars["Uint64"]; cyclesPrice: Scalars["Uint64"]; method: Scalars["String"]; nonce: Scalars["Hash"]; payload: Scalars["String"]; sender: Scalars["Address"]; serviceName: Scalars["String"]; timeout: Scalars["Uint64"] }
Type declaration
-
chainId: Scalars["Hash"]
-
cyclesLimit: Scalars["Uint64"]
-
cyclesPrice: Scalars["Uint64"]
-
method: Scalars["String"]
-
nonce: Scalars["Hash"]
-
payload: Scalars["String"]
-
sender: Scalars["Address"]
-
serviceName: Scalars["String"]
-
timeout: Scalars["Uint64"]
InputTransactionEncryption
InputTransactionEncryption: { pubkey: Scalars["Bytes"]; signature: Scalars["Bytes"]; txHash: Scalars["Hash"] }
Type declaration
-
pubkey: Scalars["Bytes"]
-
signature: Scalars["Bytes"]
-
txHash: Scalars["Hash"]
Maybe
Maybe<T>: T | null
Type parameters
Mutation
Mutation: { sendTransaction: Scalars["Hash"]; unsafeSendTransaction: Scalars["Hash"] }
Type declaration
-
sendTransaction: Scalars["Hash"]
-
unsafeSendTransaction: Scalars["Hash"]
MutationSendTransactionArgs
MutationUnsafeSendTransactionArgs
Mutation
UnsafeSendTransactionArgs: { inputPrivkey: Scalars["Bytes"]; inputRaw: InputRawTransaction }
Type declaration
-
inputPrivkey: Scalars["Bytes"]
-
Proof
Proof: { bitmap: Scalars["Bytes"]; blockHash: Scalars["Hash"]; height: Scalars["Uint64"]; round: Scalars["Uint64"]; signature: Scalars["Bytes"] }
Type declaration
-
bitmap: Scalars["Bytes"]
-
blockHash: Scalars["Hash"]
-
height: Scalars["Uint64"]
-
round: Scalars["Uint64"]
-
signature: Scalars["Bytes"]
QueryGetBlockArgs
Query
GetBlockArgs: { height?: Maybe<Scalars["Uint64"]> }
Type declaration
-
Optional height?: Maybe<Scalars["Uint64"]>
QueryGetReceiptArgs
QueryGetReceiptArgs: { txHash: Scalars["Hash"] }
QueryGetTransactionArgs
QueryGetTransactionArgs: { txHash: Scalars["Hash"] }
QueryQueryServiceArgs
Query
QueryServiceArgs: { caller: Scalars["Address"]; cyclesLimit?: Maybe<Scalars["Uint64"]>; cyclesPrice?: Maybe<Scalars["Uint64"]>; height?: Maybe<Scalars["Uint64"]>; method: Scalars["String"]; payload: Scalars["String"]; serviceName: Scalars["String"] }
Type declaration
-
caller: Scalars["Address"]
-
Optional cyclesLimit?: Maybe<Scalars["Uint64"]>
-
Optional cyclesPrice?: Maybe<Scalars["Uint64"]>
-
Optional height?: Maybe<Scalars["Uint64"]>
-
method: Scalars["String"]
-
payload: Scalars["String"]
-
serviceName: Scalars["String"]
QueryServiceQuery
Query
ServiceQuery: { queryService: Pick<ServiceResponse, "code" | "errorMessage" | "succeedData"> }
Type declaration
-
queryService: Pick<ServiceResponse, "code" | "errorMessage" | "succeedData">
QueryServiceQueryVariables
Query
ServiceQueryVariables: Exact<{ caller: Scalars["Address"]; cycleLimit?: Maybe<Scalars["Uint64"]>; cyclePrice?: Maybe<Scalars["Uint64"]>; height?: Maybe<Scalars["Uint64"]>; method: Scalars["String"]; payload: Scalars["String"]; serviceName: Scalars["String"] }>
Receipt
Receipt
: { cyclesUsed
: Scalars["Uint64"]; events
: Array<Event>; height
: Scalars["Uint64"]; response
: ReceiptResponse; stateRoot
: Scalars["Hash"]; txHash
: Scalars["Hash"] }
Type declaration
-
cyclesUsed: Scalars["Uint64"]
-
events: Array<Event>
-
height: Scalars["Uint64"]
-
-
stateRoot: Scalars["Hash"]
-
txHash: Scalars["Hash"]
ReceiptResponse
Receipt
Response: { method: Scalars["String"]; response: ServiceResponse; serviceName: Scalars["String"] }
Type declaration
-
method: Scalars["String"]
-
-
serviceName: Scalars["String"]
Scalars
Scalars: { Address: string; Boolean: boolean; Bytes: string; Float: number; Hash: string; ID: string; Int: number; String: string; Uint64: string }
Type declaration
-
Address: string
-
Boolean: boolean
-
Bytes: string
-
Float: number
-
Hash: string
-
ID: string
-
Int: number
-
String: string
-
Uint64: string
Sdk
Sdk
: ReturnType<typeof getSdk>
SdkFunctionWrapper
SdkFunctionWrapper: <T>(action: () => Promise<T>) => Promise<T>
Type declaration
-
- <T>(action: () => Promise<T>): Promise<T>
-
Type parameters
Parameters
Returns Promise<T>
SendTransactionMutation
Send
TransactionMutation: Pick<Mutation, "sendTransaction">
SendTransactionMutationVariables
ServicePayloadFragment
Service
PayloadFragment: Pick<SignedTransaction, "serviceName" | "method" | "payload">
ServiceResponse
ServiceResponse: { code: Scalars["Uint64"]; errorMessage: Scalars["String"]; succeedData: Scalars["String"] }
Type declaration
-
code: Scalars["Uint64"]
-
errorMessage: Scalars["String"]
-
succeedData: Scalars["String"]
SignedTransaction
SignedTransaction: { chainId: Scalars["Hash"]; cyclesLimit: Scalars["Uint64"]; cyclesPrice: Scalars["Uint64"]; method: Scalars["String"]; nonce: Scalars["Hash"]; payload: Scalars["String"]; pubkey: Scalars["Bytes"]; sender: Scalars["Address"]; serviceName: Scalars["String"]; signature: Scalars["Bytes"]; timeout: Scalars["Uint64"]; txHash: Scalars["Hash"] }
Type declaration
-
chainId: Scalars["Hash"]
-
cyclesLimit: Scalars["Uint64"]
-
cyclesPrice: Scalars["Uint64"]
-
method: Scalars["String"]
-
nonce: Scalars["Hash"]
-
payload: Scalars["String"]
-
pubkey: Scalars["Bytes"]
-
sender: Scalars["Address"]
-
serviceName: Scalars["String"]
-
signature: Scalars["Bytes"]
-
timeout: Scalars["Uint64"]
-
txHash: Scalars["Hash"]
Validator
Validator: { proposeWeight: Scalars["Int"]; pubkey: Scalars["Bytes"]; voteWeight: Scalars["Int"] }
Type declaration
-
proposeWeight: Scalars["Int"]
-
pubkey: Scalars["Bytes"]
-
voteWeight: Scalars["Int"]
Variables
Const GetBlockDocument
GetBlockDocument: DocumentNode = gql`query getBlock($height: Uint64) {getBlock(height: $height) {header {chainIdconfirmRootcyclesUsedexecHeightheightorderRootorderSignedTransactionsHashprevHashproof {bitmapblockHashheightroundsignature}proposerreceiptRootstateRoottimestampvalidatorVersionvalidators {pubkeyproposeWeightvoteWeight}}orderedTxHasheshash}}`
Const GetReceiptDocument
GetReceiptDocument: DocumentNode = gql`query getReceipt($txHash: Hash!) {getReceipt(txHash: $txHash) {txHashheightcyclesUsedevents {datanameservice}stateRootresponse {serviceNamemethodresponse {codeerrorMessagesucceedData}}}}`
Const GetTransactionDocument
GetTransactionDocument: DocumentNode = gql`query getTransaction($txHash: Hash!) {getTransaction(txHash: $txHash) {...ServicePayloadnoncechainIdcyclesLimitcyclesPricetimeouttxHashpubkeysignaturesender}}${ServicePayloadFragmentDoc}`
Const QueryServiceDocument
QueryServiceDocument: DocumentNode = gql`query queryService($serviceName: String!, $method: String!, $payload: String!, $height: Uint64, $caller: Address!, $cyclePrice: Uint64, $cycleLimit: Uint64) {queryService(height: $height, serviceName: $serviceName, method: $method, payload: $payload, caller: $caller, cyclesPrice: $cyclePrice, cyclesLimit: $cycleLimit) {codeerrorMessagesucceedData}}`
Const SendTransactionDocument
SendTransactionDocument: DocumentNode = gql`mutation sendTransaction($inputRaw: InputRawTransaction!, $inputEncryption: InputTransactionEncryption!) {sendTransaction(inputRaw: $inputRaw, inputEncryption: $inputEncryption)}`
Const ServicePayloadFragmentDoc
ServicePayloadFragmentDoc: DocumentNode = gql`fragment ServicePayload on SignedTransaction {serviceNamemethodpayload}`
Block is a single digital record created within a blockchain. Each block contains a record of the previous Block, and when linked together these become the “chain”.A block is always composed of header and body.