methods
: { _getPollInterval
: ((type
: "block" | "microblock", __namedParameters
: { _expectedMineRate
?: number; _maxPollInterval
?: number; _microBlockCycle
?: number }) => number); aensBid
: ((name
: `${string}.chain`, nameFee
: string | number | BigNumber, options
: Omit<AensClaimOptions, "nameFee">) => ReturnType<typeof aensClaim>); aensClaim
: ((name
: `${string}.chain`, salt
: number, options
: AensClaimOptions) => Promise<AensClaimReturnType>); aensPreclaim
: ((name
: `${string}.chain`, options
: AensPreclaimOptions) => Promise<Readonly<Awaited<ReturnType<typeof send>> & { claim
: ((opts
?: Parameters<typeof aensClaim>[2]) => ReturnType<typeof aensClaim>); commitmentId
: string; height
: number; salt
: number }>>); aensQuery
: ((name
: `${string}.chain`, opt
: { onNode
: Node } & AensUpdateOptions & AensTransferOptions) => Promise<Readonly<TransformNodeType<NameEntry> & { extendTtl
: ((nameTtl
: number, options
?: Omit<Parameters<typeof aensQuery>[1], "onNode" | "onCompiler" | "onAccount">) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>); id
: Name; owner
: AccountAddress; pointers
: KeyPointers | NamePointer[]; revoke
: ((options
?: Omit<Parameters<typeof aensRevoke>[1], "onNode" | "onCompiler" | "onAccount"> & { onAccount
?: AccountBase }) => ReturnType<typeof aensRevoke>); transfer
: ((account
: AccountAddress, options
?: Parameters<typeof aensQuery>[1]) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>); ttl
: number; update
: ((pointers
: KeyPointers, options
?: Omit<Parameters<typeof aensQuery>[1], "onNode" | "onCompiler" | "onAccount"> & { onAccount
?: AccountBase }) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>) }>>); aensRevoke
: ((name
: `${string}.chain`, options
: AensRevokeOptions) => ReturnType<typeof send>); aensTransfer
: ((name
: `${string}.chain`, account
: `ak_${string}`, options
: AensTransferOptions) => ReturnType<typeof send>); aensUpdate
: ((name
: `${string}.chain`, pointers
: KeyPointers, options
: AensUpdateOptions) => ReturnType<typeof send>); awaitHeight
: ((height
: number, options
: { interval
?: number; onNode
: Node } & { _expectedMineRate
?: number; _maxPollInterval
?: number; _microBlockCycle
?: number }) => Promise<number>); buildAuthTxHash
: ((transaction
: `tx_${string}`, options
: { onNode
: Node }) => Promise<Uint8Array>); createAensDelegationSignature
: ((contractId
: `ct_${string}`, opt
: any) => Promise<string>); createGeneralizedAccount
: ((authFnName
: string, source
: string, args
: any[], options
: CreateGeneralizedAccountOptions) => Promise<Readonly<{ gaContractId
: ContractAddress; owner
: AccountAddress; rawTx
: Transaction; transaction
: TxHash }>>); createMetaTx
: ((rawTransaction
: `tx_${string}`, authData
: { args
?: any[]; callData
?: `cb_${string}`; gasLimit
?: number; source
?: string }, authFnName
: string, options
: { onAccount
: AccountBase; onCompiler
: Compiler; onNode
: Node } & object) => Promise<Transaction>); createOracleDelegationSignature
: ((contractId
: `ct_${string}`, opt
: any) => Promise<string>); extendOracleTtl
: ((oracleId
: `ok_${string}`, options
: ExtendOracleTtlOptions) => Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getOracleObject>>>); getAccount
: ((address
: `ct_${string}` | `ak_${string}`, options
: { hash
?: `kh_${string}` | `mh_${string}`; height
?: number; onNode
: Node }) => Promise<TransformNodeType<<internal>.Account>>); getBalance
: ((address
: `ct_${string}` | `ak_${string}`, options
: { format
?: AE_AMOUNT_FORMATS } & { hash
?: `kh_${string}` | `mh_${string}`; height
?: number; onNode
: Node }) => Promise<string>); getContract
: ((contractId
: `ct_${string}`, options
: { onNode
: Node }) => Promise<TransformNodeType<ContractObject>>); getContractByteCode
: ((contractId
: `ct_${string}`, options
: { onNode
: Node }) => Promise<TransformNodeType<<internal>.ByteCode>>); getContractInstance
: ((options
: { aci
?: <internal>.Aci; bytecode
?: `cb_${string}`; contractAddress
?: `ct_${string}` | `${string}.chain`; fileSystem
?: Record<string, string>; onAccount
?: AccountBase; onCompiler
: Compiler; onNode
: Node; source
?: string; validateBytecode
?: boolean; [key:
string]
: any }) => Promise<ContractInstance>); getCurrentGeneration
: ((options
: { onNode
: Node }) => Promise<TransformNodeType<Generation>>); getGeneration
: ((hashOrHeight
: number | `kh_${string}`, options
: { onNode
: Node }) => Promise<TransformNodeType<Generation>>); getHeight
: ((__namedParameters
: { onNode
: Node }) => Promise<number>); getKeyBlock
: ((hashOrHeight
: number | `kh_${string}`, options
: { onNode
: Node }) => Promise<TransformNodeType<KeyBlock>>); getMicroBlockHeader
: ((hash
: `mh_${string}`, options
: { onNode
: Node }) => Promise<TransformNodeType<MicroBlockHeader>>); getMicroBlockTransactions
: ((hash
: `mh_${string}`, options
: { onNode
: Node }) => Promise<TransformNodeType<SignedTx[]>>); getName
: ((name
: `${string}.chain`, options
: { onNode
: Node }) => Promise<TransformNodeType<NameEntry>>); getOracleObject
: ((oracleId
: `ok_${string}`, options
: { onAccount
: AccountBase; onNode
: Node }) => Promise<GetOracleObjectReturnType>); getQueryObject
: ((oracleId
: `ok_${string}`, queryId
: `oq_${string}`, options
: RespondToQueryOptions & { interval
?: number; onNode
: Node } & { _expectedMineRate
?: number; _maxPollInterval
?: number; _microBlockCycle
?: number }) => Promise<GetQueryObjectReturnType>); getVmVersion
: { (txType
: ContractCreateTx, ctVersion
: Partial<CtVersion> & { onNode
: Node }): Promise<CtVersion>; (txType
: Tag, ctVersion
: Partial<Pick<CtVersion, "abiVersion">> & { onNode
: Node }): Promise<Pick<CtVersion, "abiVersion">> }; height
: ((__namedParameters
: { onNode
: Node }) => Promise<number>); isGA
: ((address
: `ak_${string}`, options
: { hash
?: `kh_${string}` | `mh_${string}`; height
?: number; onNode
: Node }) => Promise<boolean>); payForTransaction
: ((transaction
: `tx_${string}`, options
: PayForTransactionOptions) => ReturnType<typeof send>); poll
: ((th
: `th_${string}`, options
: { blocks
?: number; interval
?: number; onNode
: Node } & { _expectedMineRate
?: number; _maxPollInterval
?: number; _microBlockCycle
?: number }) => Promise<TransformNodeType<SignedTx>>); pollForQueries
: ((oracleId
: `ok_${string}`, onQuery
: ((queries
: { fee
: bigint; id
: string; oracleId
: string; query
: string; response
: string; responseTtl
: { type: TTLType; value: string; }
; senderId
: string; senderNonce
: string; ttl
: number }[]) => void), options
: { interval
?: number; onNode
: Node } & { _expectedMineRate
?: number; _maxPollInterval
?: number; _microBlockCycle
?: number }) => (() => void)); pollForQueryResponse
: ((oracleId
: `ok_${string}`, queryId
: `oq_${string}`, options
: { interval
?: number; onNode
: Node } & { _expectedMineRate
?: number; _maxPollInterval
?: number; _microBlockCycle
?: number }) => Promise<string>); postQueryToOracle
: ((oracleId
: `ok_${string}`, query
: string, options
: PostQueryToOracleOptions) => Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getQueryObject>>>); prepareTxParams
: ((txType
: Tag, params
: PrepareTxParamsOptions) => Promise<{ nonce
: number; ttl
: number }>); registerOracle
: ((queryFormat
: string, responseFormat
: string, options
: RegisterOracleOptions) => Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getOracleObject>>>); resolveName
: (<Type>(nameOrId
: `${string}.chain` | `${Type}_${string}`, key
: string, options
: { onNode
: Node; resolveByNode
?: boolean; verify
?: boolean }) => Promise<Generic<Type | Name>>); respondToQuery
: ((oracleId
: `ok_${string}`, queryId
: `oq_${string}`, response
: string, options
: RespondToQueryOptions) => Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getOracleObject>>>); send
: ((tx
: `tx_${string}`, options
: SendOptions) => Promise<SendReturnType>); sendTransaction
: ((tx
: `tx_${string}`, options
: SendTransactionOptions) => Promise<SendTransactionReturnType>); signUsingGA
: ((tx
: `tx_${string}`, __namedParameters
: { authData
: { args
?: any[]; callData
?: `cb_${string}`; gasLimit
?: number; source
?: string }; authFun
: string } & { onAccount
: AccountBase; onCompiler
: Compiler; onNode
: Node } & object) => Promise<Transaction>); spend
: ((amount
: string | number, recipientIdOrName
: `ak_${string}` | `${string}.chain`, options
: SpendOptions) => ReturnType<typeof send>); transferFunds
: ((fraction
: string | number, recipientIdOrName
: `ak_${string}` | `${string}.chain`, options
: TransferFundsOptions) => ReturnType<typeof send>); txDryRun
: ((tx
: `tx_${string}`, accountAddress
: `ak_${string}`, options
: { combine
?: boolean; onNode
: Node; top
?: number; txEvents
?: boolean }) => Promise<{ txEvents
?: TransformNodeType<DryRunResults["txEvents"]> } & TransformNodeType<DryRunResult>>); waitForTxConfirm
: ((txHash
: `th_${string}`, options
: { confirm
?: number; onNode
: Node } & { interval
?: number; onNode
: Node } & { _expectedMineRate
?: number; _maxPollInterval
?: number; _microBlockCycle
?: number }) => Promise<number>) } = ...
Type declaration
-
_getPollInterval: ((type: "block" | "microblock", __namedParameters: { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }) => number)
-
- (type: "block" | "microblock", __namedParameters: { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }): number
-
Parameters
-
type: "block" | "microblock"
-
__namedParameters: { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }
-
Optional
_expectedMineRate?: number
-
Optional
_maxPollInterval?: number
-
Optional
_microBlockCycle?: number
Returns number
-
aensBid: ((name: `${string}.chain`, nameFee: string | number | BigNumber, options: Omit<AensClaimOptions, "nameFee">) => ReturnType<typeof aensClaim>)
-
- (name: `${string}.chain`, nameFee: string | number | BigNumber, options: Omit<AensClaimOptions, "nameFee">): ReturnType<typeof aensClaim>
-
Parameters
-
name: `${string}.chain`
-
nameFee: string | number | BigNumber
-
Returns ReturnType<typeof aensClaim>
-
aensClaim: ((name: `${string}.chain`, salt: number, options: AensClaimOptions) => Promise<AensClaimReturnType>)
-
aensPreclaim: ((name: `${string}.chain`, options: AensPreclaimOptions) => Promise<Readonly<Awaited<ReturnType<typeof send>> & { claim: ((opts?: Parameters<typeof aensClaim>[2]) => ReturnType<typeof aensClaim>); commitmentId: string; height: number; salt: number }>>)
-
- (name: `${string}.chain`, options: AensPreclaimOptions): Promise<Readonly<Awaited<ReturnType<typeof send>> & { claim: ((opts?: Parameters<typeof aensClaim>[2]) => ReturnType<typeof aensClaim>); commitmentId: string; height: number; salt: number }>>
-
Returns Promise<Readonly<Awaited<ReturnType<typeof send>> & { claim: ((opts?: Parameters<typeof aensClaim>[2]) => ReturnType<typeof aensClaim>); commitmentId: string; height: number; salt: number }>>
-
aensQuery: ((name: `${string}.chain`, opt: { onNode: Node } & AensUpdateOptions & AensTransferOptions) => Promise<Readonly<TransformNodeType<NameEntry> & { extendTtl: ((nameTtl: number, options?: Omit<Parameters<typeof aensQuery>[1], "onNode" | "onCompiler" | "onAccount">) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>); id: Name; owner: AccountAddress; pointers: KeyPointers | NamePointer[]; revoke: ((options?: Omit<Parameters<typeof aensRevoke>[1], "onNode" | "onCompiler" | "onAccount"> & { onAccount?: AccountBase }) => ReturnType<typeof aensRevoke>); transfer: ((account: AccountAddress, options?: Parameters<typeof aensQuery>[1]) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>); ttl: number; update: ((pointers: KeyPointers, options?: Omit<Parameters<typeof aensQuery>[1], "onNode" | "onCompiler" | "onAccount"> & { onAccount?: AccountBase }) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>) }>>)
-
- (name: `${string}.chain`, opt: { onNode: Node } & AensUpdateOptions & AensTransferOptions): Promise<Readonly<TransformNodeType<NameEntry> & { extendTtl: ((nameTtl: number, options?: Omit<Parameters<typeof aensQuery>[1], "onNode" | "onCompiler" | "onAccount">) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>); id: Name; owner: AccountAddress; pointers: KeyPointers | NamePointer[]; revoke: ((options?: Omit<Parameters<typeof aensRevoke>[1], "onNode" | "onCompiler" | "onAccount"> & { onAccount?: AccountBase }) => ReturnType<typeof aensRevoke>); transfer: ((account: AccountAddress, options?: Parameters<typeof aensQuery>[1]) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>); ttl: number; update: ((pointers: KeyPointers, options?: Omit<Parameters<typeof aensQuery>[1], "onNode" | "onCompiler" | "onAccount"> & { onAccount?: AccountBase }) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>) }>>
-
Returns Promise<Readonly<TransformNodeType<NameEntry> & { extendTtl: ((nameTtl: number, options?: Omit<Parameters<typeof aensQuery>[1], "onNode" | "onCompiler" | "onAccount">) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>); id: Name; owner: AccountAddress; pointers: KeyPointers | NamePointer[]; revoke: ((options?: Omit<Parameters<typeof aensRevoke>[1], "onNode" | "onCompiler" | "onAccount"> & { onAccount?: AccountBase }) => ReturnType<typeof aensRevoke>); transfer: ((account: AccountAddress, options?: Parameters<typeof aensQuery>[1]) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>); ttl: number; update: ((pointers: KeyPointers, options?: Omit<Parameters<typeof aensQuery>[1], "onNode" | "onCompiler" | "onAccount"> & { onAccount?: AccountBase }) => ReturnType<typeof aensUpdate> & ReturnType<typeof aensQuery>) }>>
-
aensRevoke: ((name: `${string}.chain`, options: AensRevokeOptions) => ReturnType<typeof send>)
-
aensTransfer: ((name: `${string}.chain`, account: `ak_${string}`, options: AensTransferOptions) => ReturnType<typeof send>)
-
- (name: `${string}.chain`, account: `ak_${string}`, options: AensTransferOptions): ReturnType<typeof send>
-
Parameters
-
name: `${string}.chain`
-
account: `ak_${string}`
-
Returns ReturnType<typeof send>
-
aensUpdate: ((name: `${string}.chain`, pointers: KeyPointers, options: AensUpdateOptions) => ReturnType<typeof send>)
-
awaitHeight: ((height: number, options: { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }) => Promise<number>)
-
- (height: number, options: { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }): Promise<number>
-
Parameters
-
height: number
-
options: { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }
Returns Promise<number>
-
buildAuthTxHash: ((transaction: `tx_${string}`, options: { onNode: Node }) => Promise<Uint8Array>)
-
- (transaction: `tx_${string}`, options: { onNode: Node }): Promise<Uint8Array>
-
Parameters
-
transaction: `tx_${string}`
-
options: { onNode: Node }
Returns Promise<Uint8Array>
-
createAensDelegationSignature: ((contractId: `ct_${string}`, opt: any) => Promise<string>)
-
- (contractId: `ct_${string}`, opt: any): Promise<string>
-
Parameters
-
contractId: `ct_${string}`
-
opt: any
Returns Promise<string>
-
createGeneralizedAccount: ((authFnName: string, source: string, args: any[], options: CreateGeneralizedAccountOptions) => Promise<Readonly<{ gaContractId: ContractAddress; owner: AccountAddress; rawTx: Transaction; transaction: TxHash }>>)
-
createMetaTx: ((rawTransaction: `tx_${string}`, authData: { args?: any[]; callData?: `cb_${string}`; gasLimit?: number; source?: string }, authFnName: string, options: { onAccount: AccountBase; onCompiler: Compiler; onNode: Node } & object) => Promise<Transaction>)
-
- (rawTransaction: `tx_${string}`, authData: { args?: any[]; callData?: `cb_${string}`; gasLimit?: number; source?: string }, authFnName: string, options: { onAccount: AccountBase; onCompiler: Compiler; onNode: Node } & object): Promise<Transaction>
-
Parameters
-
rawTransaction: `tx_${string}`
-
authData: { args?: any[]; callData?: `cb_${string}`; gasLimit?: number; source?: string }
-
Optional
args?: any[]
-
Optional
callData?: `cb_${string}`
-
Optional
gasLimit?: number
-
Optional
source?: string
-
authFnName: string
-
options: { onAccount: AccountBase; onCompiler: Compiler; onNode: Node } & object
-
createOracleDelegationSignature: ((contractId: `ct_${string}`, opt: any) => Promise<string>)
-
- (contractId: `ct_${string}`, opt: any): Promise<string>
-
Parameters
-
contractId: `ct_${string}`
-
opt: any
Returns Promise<string>
-
extendOracleTtl: ((oracleId: `ok_${string}`, options: ExtendOracleTtlOptions) => Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getOracleObject>>>)
-
getAccount: ((address: `ct_${string}` | `ak_${string}`, options: { hash?: `kh_${string}` | `mh_${string}`; height?: number; onNode: Node }) => Promise<TransformNodeType<<internal>.Account>>)
-
- (address: `ct_${string}` | `ak_${string}`, options: { hash?: `kh_${string}` | `mh_${string}`; height?: number; onNode: Node }): Promise<TransformNodeType<<internal>.Account>>
-
Parameters
-
address: `ct_${string}` | `ak_${string}`
-
options: { hash?: `kh_${string}` | `mh_${string}`; height?: number; onNode: Node }
-
Optional
hash?: `kh_${string}` | `mh_${string}`
-
Optional
height?: number
-
-
getBalance: ((address: `ct_${string}` | `ak_${string}`, options: { format?: AE_AMOUNT_FORMATS } & { hash?: `kh_${string}` | `mh_${string}`; height?: number; onNode: Node }) => Promise<string>)
-
- (address: `ct_${string}` | `ak_${string}`, options: { format?: AE_AMOUNT_FORMATS } & { hash?: `kh_${string}` | `mh_${string}`; height?: number; onNode: Node }): Promise<string>
-
Parameters
-
address: `ct_${string}` | `ak_${string}`
-
options: { format?: AE_AMOUNT_FORMATS } & { hash?: `kh_${string}` | `mh_${string}`; height?: number; onNode: Node }
Returns Promise<string>
-
getContract: ((contractId: `ct_${string}`, options: { onNode: Node }) => Promise<TransformNodeType<ContractObject>>)
-
getContractByteCode: ((contractId: `ct_${string}`, options: { onNode: Node }) => Promise<TransformNodeType<<internal>.ByteCode>>)
-
getContractInstance: ((options: { aci?: <internal>.Aci; bytecode?: `cb_${string}`; contractAddress?: `ct_${string}` | `${string}.chain`; fileSystem?: Record<string, string>; onAccount?: AccountBase; onCompiler: Compiler; onNode: Node; source?: string; validateBytecode?: boolean; [key: string]: any }) => Promise<ContractInstance>)
-
- (options: { aci?: <internal>.Aci; bytecode?: `cb_${string}`; contractAddress?: `ct_${string}` | `${string}.chain`; fileSystem?: Record<string, string>; onAccount?: AccountBase; onCompiler: Compiler; onNode: Node; source?: string; validateBytecode?: boolean; [key: string]: any }): Promise<ContractInstance>
-
Parameters
-
options: { aci?: <internal>.Aci; bytecode?: `cb_${string}`; contractAddress?: `ct_${string}` | `${string}.chain`; fileSystem?: Record<string, string>; onAccount?: AccountBase; onCompiler: Compiler; onNode: Node; source?: string; validateBytecode?: boolean; [key: string]: any }
-
[key: string]: any
-
-
Optional
bytecode?: `cb_${string}`
-
Optional
contractAddress?: `ct_${string}` | `${string}.chain`
-
Optional
fileSystem?: Record<string, string>
-
-
-
-
Optional
source?: string
-
Optional
validateBytecode?: boolean
-
-
getGeneration: ((hashOrHeight: number | `kh_${string}`, options: { onNode: Node }) => Promise<TransformNodeType<Generation>>)
-
- (hashOrHeight: number | `kh_${string}`, options: { onNode: Node }): Promise<TransformNodeType<Generation>>
-
Parameters
-
hashOrHeight: number | `kh_${string}`
-
options: { onNode: Node }
-
getHeight: ((__namedParameters: { onNode: Node }) => Promise<number>)
-
- (__namedParameters: { onNode: Node }): Promise<number>
-
Parameters
-
__namedParameters: { onNode: Node }
Returns Promise<number>
-
getKeyBlock: ((hashOrHeight: number | `kh_${string}`, options: { onNode: Node }) => Promise<TransformNodeType<KeyBlock>>)
-
- (hashOrHeight: number | `kh_${string}`, options: { onNode: Node }): Promise<TransformNodeType<KeyBlock>>
-
Parameters
-
hashOrHeight: number | `kh_${string}`
-
options: { onNode: Node }
-
getMicroBlockHeader: ((hash: `mh_${string}`, options: { onNode: Node }) => Promise<TransformNodeType<MicroBlockHeader>>)
-
getMicroBlockTransactions: ((hash: `mh_${string}`, options: { onNode: Node }) => Promise<TransformNodeType<SignedTx[]>>)
-
getName: ((name: `${string}.chain`, options: { onNode: Node }) => Promise<TransformNodeType<NameEntry>>)
-
getOracleObject: ((oracleId: `ok_${string}`, options: { onAccount: AccountBase; onNode: Node }) => Promise<GetOracleObjectReturnType>)
-
getQueryObject: ((oracleId: `ok_${string}`, queryId: `oq_${string}`, options: RespondToQueryOptions & { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }) => Promise<GetQueryObjectReturnType>)
-
- (oracleId: `ok_${string}`, queryId: `oq_${string}`, options: RespondToQueryOptions & { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }): Promise<GetQueryObjectReturnType>
-
Parameters
-
oracleId: `ok_${string}`
-
queryId: `oq_${string}`
-
options: RespondToQueryOptions & { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }
-
getVmVersion: { (txType: ContractCreateTx, ctVersion: Partial<CtVersion> & { onNode: Node }): Promise<CtVersion>; (txType: Tag, ctVersion: Partial<Pick<CtVersion, "abiVersion">> & { onNode: Node }): Promise<Pick<CtVersion, "abiVersion">> }
-
height: ((__namedParameters: { onNode: Node }) => Promise<number>)
-
- (__namedParameters: { onNode: Node }): Promise<number>
-
Parameters
-
__namedParameters: { onNode: Node }
Returns Promise<number>
-
isGA: ((address: `ak_${string}`, options: { hash?: `kh_${string}` | `mh_${string}`; height?: number; onNode: Node }) => Promise<boolean>)
-
- (address: `ak_${string}`, options: { hash?: `kh_${string}` | `mh_${string}`; height?: number; onNode: Node }): Promise<boolean>
-
Parameters
-
address: `ak_${string}`
-
options: { hash?: `kh_${string}` | `mh_${string}`; height?: number; onNode: Node }
-
Optional
hash?: `kh_${string}` | `mh_${string}`
-
Optional
height?: number
-
Returns Promise<boolean>
-
payForTransaction: ((transaction: `tx_${string}`, options: PayForTransactionOptions) => ReturnType<typeof send>)
-
- (transaction: `tx_${string}`, options: PayForTransactionOptions): ReturnType<typeof send>
-
Parameters
-
transaction: `tx_${string}`
-
Returns ReturnType<typeof send>
-
poll: ((th: `th_${string}`, options: { blocks?: number; interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }) => Promise<TransformNodeType<SignedTx>>)
-
- (th: `th_${string}`, options: { blocks?: number; interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }): Promise<TransformNodeType<SignedTx>>
-
Parameters
-
th: `th_${string}`
-
options: { blocks?: number; interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }
-
pollForQueries: ((oracleId: `ok_${string}`, onQuery: ((queries: { fee: bigint; id: string; oracleId: string; query: string; response: string; responseTtl: { type: TTLType; value: string; }; senderId: string; senderNonce: string; ttl: number }[]) => void), options: { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }) => (() => void))
-
- (oracleId: `ok_${string}`, onQuery: ((queries: { fee: bigint; id: string; oracleId: string; query: string; response: string; responseTtl: { type: TTLType; value: string; }; senderId: string; senderNonce: string; ttl: number }[]) => void), options: { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }): (() => void)
-
Parameters
-
oracleId: `ok_${string}`
-
onQuery: ((queries: { fee: bigint; id: string; oracleId: string; query: string; response: string; responseTtl: { type: TTLType; value: string; }; senderId: string; senderNonce: string; ttl: number }[]) => void)
-
- (queries: { fee: bigint; id: string; oracleId: string; query: string; response: string; responseTtl: { type: TTLType; value: string; }; senderId: string; senderNonce: string; ttl: number }[]): void
-
Parameters
-
queries: { fee: bigint; id: string; oracleId: string; query: string; response: string; responseTtl: { type: TTLType; value: string; }; senderId: string; senderNonce: string; ttl: number }[]
Returns void
-
options: { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }
Returns (() => void)
-
pollForQueryResponse: ((oracleId: `ok_${string}`, queryId: `oq_${string}`, options: { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }) => Promise<string>)
-
- (oracleId: `ok_${string}`, queryId: `oq_${string}`, options: { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }): Promise<string>
-
Parameters
-
oracleId: `ok_${string}`
-
queryId: `oq_${string}`
-
options: { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }
Returns Promise<string>
-
postQueryToOracle: ((oracleId: `ok_${string}`, query: string, options: PostQueryToOracleOptions) => Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getQueryObject>>>)
-
- (oracleId: `ok_${string}`, query: string, options: PostQueryToOracleOptions): Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getQueryObject>>>
-
Parameters
-
oracleId: `ok_${string}`
-
query: string
-
Returns Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getQueryObject>>>
-
prepareTxParams: ((txType: Tag, params: PrepareTxParamsOptions) => Promise<{ nonce: number; ttl: number }>)
-
- (txType: Tag, params: PrepareTxParamsOptions): Promise<{ nonce: number; ttl: number }>
-
Returns Promise<{ nonce: number; ttl: number }>
-
registerOracle: ((queryFormat: string, responseFormat: string, options: RegisterOracleOptions) => Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getOracleObject>>>)
-
- (queryFormat: string, responseFormat: string, options: RegisterOracleOptions): Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getOracleObject>>>
-
Parameters
-
queryFormat: string
-
responseFormat: string
-
Returns Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getOracleObject>>>
-
resolveName: (<Type>(nameOrId: `${string}.chain` | `${Type}_${string}`, key: string, options: { onNode: Node; resolveByNode?: boolean; verify?: boolean }) => Promise<Generic<Type | Name>>)
-
- <Type>(nameOrId: `${string}.chain` | `${Type}_${string}`, key: string, options: { onNode: Node; resolveByNode?: boolean; verify?: boolean }): Promise<Generic<Type | Name>>
-
Parameters
-
nameOrId: `${string}.chain` | `${Type}_${string}`
-
key: string
-
options: { onNode: Node; resolveByNode?: boolean; verify?: boolean }
-
-
Optional
resolveByNode?: boolean
-
Optional
verify?: boolean
Returns Promise<Generic<Type | Name>>
-
respondToQuery: ((oracleId: `ok_${string}`, queryId: `oq_${string}`, response: string, options: RespondToQueryOptions) => Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getOracleObject>>>)
-
- (oracleId: `ok_${string}`, queryId: `oq_${string}`, response: string, options: RespondToQueryOptions): Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getOracleObject>>>
-
Parameters
-
oracleId: `ok_${string}`
-
queryId: `oq_${string}`
-
response: string
-
Returns Promise<Awaited<ReturnType<typeof send>> & Awaited<ReturnType<typeof getOracleObject>>>
-
send: ((tx: `tx_${string}`, options: SendOptions) => Promise<SendReturnType>)
-
-
signUsingGA: ((tx: `tx_${string}`, __namedParameters: { authData: { args?: any[]; callData?: `cb_${string}`; gasLimit?: number; source?: string }; authFun: string } & { onAccount: AccountBase; onCompiler: Compiler; onNode: Node } & object) => Promise<Transaction>)
-
- (tx: `tx_${string}`, __namedParameters: { authData: { args?: any[]; callData?: `cb_${string}`; gasLimit?: number; source?: string }; authFun: string } & { onAccount: AccountBase; onCompiler: Compiler; onNode: Node } & object): Promise<Transaction>
-
Parameters
-
tx: `tx_${string}`
-
__namedParameters: { authData: { args?: any[]; callData?: `cb_${string}`; gasLimit?: number; source?: string }; authFun: string } & { onAccount: AccountBase; onCompiler: Compiler; onNode: Node } & object
-
spend: ((amount: string | number, recipientIdOrName: `ak_${string}` | `${string}.chain`, options: SpendOptions) => ReturnType<typeof send>)
-
- (amount: string | number, recipientIdOrName: `ak_${string}` | `${string}.chain`, options: SpendOptions): ReturnType<typeof send>
-
Parameters
-
amount: string | number
-
recipientIdOrName: `ak_${string}` | `${string}.chain`
-
Returns ReturnType<typeof send>
-
transferFunds: ((fraction: string | number, recipientIdOrName: `ak_${string}` | `${string}.chain`, options: TransferFundsOptions) => ReturnType<typeof send>)
-
- (fraction: string | number, recipientIdOrName: `ak_${string}` | `${string}.chain`, options: TransferFundsOptions): ReturnType<typeof send>
-
Parameters
-
fraction: string | number
-
recipientIdOrName: `ak_${string}` | `${string}.chain`
-
Returns ReturnType<typeof send>
-
txDryRun: ((tx: `tx_${string}`, accountAddress: `ak_${string}`, options: { combine?: boolean; onNode: Node; top?: number; txEvents?: boolean }) => Promise<{ txEvents?: TransformNodeType<DryRunResults["txEvents"]> } & TransformNodeType<DryRunResult>>)
-
- (tx: `tx_${string}`, accountAddress: `ak_${string}`, options: { combine?: boolean; onNode: Node; top?: number; txEvents?: boolean }): Promise<{ txEvents?: TransformNodeType<DryRunResults["txEvents"]> } & TransformNodeType<DryRunResult>>
-
Parameters
-
tx: `tx_${string}`
-
accountAddress: `ak_${string}`
-
options: { combine?: boolean; onNode: Node; top?: number; txEvents?: boolean }
-
Optional
combine?: boolean
-
-
Optional
top?: number
-
Optional
txEvents?: boolean
-
waitForTxConfirm: ((txHash: `th_${string}`, options: { confirm?: number; onNode: Node } & { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }) => Promise<number>)
-
- (txHash: `th_${string}`, options: { confirm?: number; onNode: Node } & { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }): Promise<number>
-
Parameters
-
txHash: `th_${string}`
-
options: { confirm?: number; onNode: Node } & { interval?: number; onNode: Node } & { _expectedMineRate?: number; _maxPollInterval?: number; _microBlockCycle?: number }
Returns Promise<number>
Bid to name auction
Returns
Transaction result
Example