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 sendTransaction>> & { claim
: ((opts
?: Parameters<typeof aensClaim>[2]) => ReturnType<typeof aensClaim>); commitmentId
: string; 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 sendTransaction>); aensTransfer
: ((name
: `${string}.chain`, account
: `ak_${string}`, options
: AensTransferOptions) => ReturnType<typeof sendTransaction>); aensUpdate
: ((name
: `${string}.chain`, pointers
: KeyPointers, options
: AensUpdateOptions) => ReturnType<typeof sendTransaction>); awaitHeight
: ((height
: number, options
: { interval
?: number; onNode
: Node; } & { _expectedMineRate
?: number; _maxPollInterval
?: number; _microBlockCycle
?: number; }) => Promise<number>); buildAuthTxHash
: ((transaction
: `tx_${string}`, options
: { fee
?: Int; gasPrice
?: Int; onNode
: Node; }) => Promise<Buffer>); buildAuthTxHashByGaMetaTx
: ((transaction
: `tx_${string}`, options
: { onNode
: Node; }) => Promise<Buffer>); createDelegationSignature
: ((contractAddress
: `ct_${string}`, ids
: (`${string}.chain` | `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`)[], options
: { omitAddress
?: boolean; onAccount
: AccountBase; onNode
: Node; }) => Promise<Uint8Array>); createGeneralizedAccount
: ((authFnName
: string, args
: any[], __namedParameters
: CreateGeneralizedAccountOptions) => Promise<Readonly<{ gaContractId
: ContractAddress; owner
: AccountAddress; rawTx
: Transaction; transaction
: TxHash; }>>); extendOracleTtl
: ((options
: ExtendOracleTtlOptions) => Promise<Awaited<ReturnType<typeof sendTransaction>> & Awaited<ReturnType<typeof getOracleObject>>>); getAccount
: ((address
: `ct_${string}` | `ak_${string}`, options
: { hash
?: `kh_${string}` | `mh_${string}`; height
?: number; onNode
: Node; }) => Promise<TransformNodeType<Account>>); getBalance
: ((address
: `ct_${string}` | `ok_${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<ByteCode>>); 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>); payForTransaction
: ((transaction
: `tx_${string}`, options
: PayForTransactionOptions) => ReturnType<typeof sendTransaction>); 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
: ((query
: { 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 sendTransaction>> & Awaited<ReturnType<typeof getQueryObject>>>); registerOracle
: ((queryFormat
: string, responseFormat
: string, options
: RegisterOracleOptions) => Promise<Awaited<ReturnType<typeof sendTransaction>> & 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
: ((queryId
: `oq_${string}`, response
: string, options
: RespondToQueryOptions) => Promise<Awaited<ReturnType<typeof sendTransaction>> & Awaited<ReturnType<typeof getOracleObject>>>); sendTransaction
: ((txUnsigned
: `tx_${string}`, options
: SendTransactionOptions) => Promise<SendTransactionReturnType>); spend
: ((amount
: string | number, recipientIdOrName
: `${string}.chain` | `ak_${string}`, options
: SpendOptions) => ReturnType<typeof sendTransaction>); transferFunds
: ((fraction
: string | number, recipientIdOrName
: `${string}.chain` | `ak_${string}`, options
: TransferFundsOptions) => ReturnType<typeof sendTransaction>); txDryRun
: ((tx
: `tx_${string}`, accountAddress
: `ak_${string}`, options
: { combine
?: boolean; onNode
: Node; top
?: number | `kh_${string}` | `mh_${string}`; 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 sendTransaction>> & {
claim: ((opts?: Parameters<typeof aensClaim>[2]) => ReturnType<typeof aensClaim>);
commitmentId: string;
salt: number;
}>>)
-
- (name: `${string}.chain`, options: AensPreclaimOptions): Promise<Readonly<Awaited<ReturnType<typeof sendTransaction>> & {
claim: ((opts?: Parameters<typeof aensClaim>[2]) => ReturnType<typeof aensClaim>);
commitmentId: string;
salt: number;
}>>
-
Returns Promise<Readonly<Awaited<ReturnType<typeof sendTransaction>> & {
claim: ((opts?: Parameters<typeof aensClaim>[2]) => ReturnType<typeof aensClaim>);
commitmentId: string;
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 sendTransaction>)
-
aensTransfer: ((name: `${string}.chain`, account: `ak_${string}`, options: AensTransferOptions) => ReturnType<typeof sendTransaction>)
-
- (name: `${string}.chain`, account: `ak_${string}`, options: AensTransferOptions): ReturnType<typeof sendTransaction>
-
Parameters
-
name: `${string}.chain`
-
account: `ak_${string}`
-
-
-
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: {
fee?: Int;
gasPrice?: Int;
onNode: Node;
}) => Promise<Buffer>)
-
- (transaction: `tx_${string}`, options: {
fee?: Int;
gasPrice?: Int;
onNode: Node;
}): Promise<Buffer>
-
Parameters
-
transaction: `tx_${string}`
-
options: {
fee?: Int;
gasPrice?: Int;
onNode: Node;
}
-
Optional
fee?: Int
-
Optional
gasPrice?: Int
-
Returns Promise<Buffer>
-
buildAuthTxHashByGaMetaTx: ((transaction: `tx_${string}`, options: {
onNode: Node;
}) => Promise<Buffer>)
-
- (transaction: `tx_${string}`, options: {
onNode: Node;
}): Promise<Buffer>
-
Parameters
-
transaction: `tx_${string}`
-
options: {
onNode: Node;
}
Returns Promise<Buffer>
-
createDelegationSignature: ((contractAddress: `ct_${string}`, ids: (`${string}.chain` | `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`)[], options: {
omitAddress?: boolean;
onAccount: AccountBase;
onNode: Node;
}) => Promise<Uint8Array>)
-
- (contractAddress: `ct_${string}`, ids: (`${string}.chain` | `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`)[], options: {
omitAddress?: boolean;
onAccount: AccountBase;
onNode: Node;
}): Promise<Uint8Array>
-
Parameters
-
contractAddress: `ct_${string}`
-
ids: (`${string}.chain` | `kh_${string}` | `mh_${string}` | `bf_${string}` | `bx_${string}` | `bs_${string}` | `ch_${string}` | `ct_${string}` | `cb_${string}` | `ck_${string}` | `cv_${string}` | `tx_${string}` | `th_${string}` | `ok_${string}` | `ov_${string}` | `oq_${string}` | `or_${string}` | `ak_${string}` | `sg_${string}` | `cm_${string}` | `pp_${string}` | `nm_${string}` | `st_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}` | `ba_${string}`)[]
-
options: {
omitAddress?: boolean;
onAccount: AccountBase;
onNode: Node;
}
-
Optional
omitAddress?: boolean
-
-
Returns Promise<Uint8Array>
-
createGeneralizedAccount: ((authFnName: string, args: any[], __namedParameters: CreateGeneralizedAccountOptions) => Promise<Readonly<{
gaContractId: ContractAddress;
owner: AccountAddress;
rawTx: Transaction;
transaction: TxHash;
}>>)
-
-
getAccount: ((address: `ct_${string}` | `ak_${string}`, options: {
hash?: `kh_${string}` | `mh_${string}`;
height?: number;
onNode: Node;
}) => Promise<TransformNodeType<Account>>)
-
- (address: `ct_${string}` | `ak_${string}`, options: {
hash?: `kh_${string}` | `mh_${string}`;
height?: number;
onNode: Node;
}): Promise<TransformNodeType<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}` | `ok_${string}` | `ak_${string}`, options: {
format?: AE_AMOUNT_FORMATS;
} & {
hash?: `kh_${string}` | `mh_${string}`;
height?: number;
onNode: Node;
}) => Promise<string>)
-
- (address: `ct_${string}` | `ok_${string}` | `ak_${string}`, options: {
format?: AE_AMOUNT_FORMATS;
} & {
hash?: `kh_${string}` | `mh_${string}`;
height?: number;
onNode: Node;
}): Promise<string>
-
Parameters
-
address: `ct_${string}` | `ok_${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<ByteCode>>)
-
getCurrentGeneration: ((options: {
onNode: Node;
}) => Promise<TransformNodeType<Generation>>)
-
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>>)
-
-
Parameters
-
hash: `mh_${string}`
-
options: {
onNode: Node;
}
-
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;
}
-
payForTransaction: ((transaction: `tx_${string}`, options: PayForTransactionOptions) => ReturnType<typeof sendTransaction>)
-
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: ((query: {
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: ((query: {
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: ((query: {
fee: bigint;
id: string;
oracleId: string;
query: string;
response: string;
responseTtl: { type: TTLType; value: string; };
senderId: string;
senderNonce: string;
ttl: number;
}) => void)
-
- (query: {
fee: bigint;
id: string;
oracleId: string;
query: string;
response: string;
responseTtl: { type: TTLType; value: string; };
senderId: string;
senderNonce: string;
ttl: number;
}): void
-
Parameters
-
query: {
fee: bigint;
id: string;
oracleId: string;
query: string;
response: string;
responseTtl: { type: TTLType; value: string; };
senderId: string;
senderNonce: string;
ttl: number;
}
-
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 sendTransaction>> & Awaited<ReturnType<typeof getQueryObject>>>)
-
registerOracle: ((queryFormat: string, responseFormat: string, options: RegisterOracleOptions) => Promise<Awaited<ReturnType<typeof sendTransaction>> & 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: ((queryId: `oq_${string}`, response: string, options: RespondToQueryOptions) => Promise<Awaited<ReturnType<typeof sendTransaction>> & Awaited<ReturnType<typeof getOracleObject>>>)
-
-
spend: ((amount: string | number, recipientIdOrName: `${string}.chain` | `ak_${string}`, options: SpendOptions) => ReturnType<typeof sendTransaction>)
-
- (amount: string | number, recipientIdOrName: `${string}.chain` | `ak_${string}`, options: SpendOptions): ReturnType<typeof sendTransaction>
-
Parameters
-
amount: string | number
-
recipientIdOrName: `${string}.chain` | `ak_${string}`
-
-
transferFunds: ((fraction: string | number, recipientIdOrName: `${string}.chain` | `ak_${string}`, options: TransferFundsOptions) => ReturnType<typeof sendTransaction>)
-
- (fraction: string | number, recipientIdOrName: `${string}.chain` | `ak_${string}`, options: TransferFundsOptions): ReturnType<typeof sendTransaction>
-
Parameters
-
fraction: string | number
-
recipientIdOrName: `${string}.chain` | `ak_${string}`
-
-
txDryRun: ((tx: `tx_${string}`, accountAddress: `ak_${string}`, options: {
combine?: boolean;
onNode: Node;
top?: number | `kh_${string}` | `mh_${string}`;
txEvents?: boolean;
}) => Promise<{
txEvents?: TransformNodeType<DryRunResults["txEvents"]>;
} & TransformNodeType<DryRunResult>>)
-
- (tx: `tx_${string}`, accountAddress: `ak_${string}`, options: {
combine?: boolean;
onNode: Node;
top?: number | `kh_${string}` | `mh_${string}`;
txEvents?: boolean;
}): Promise<{
txEvents?: TransformNodeType<DryRunResults["txEvents"]>;
} & TransformNodeType<DryRunResult>>
-
Parameters
-
tx: `tx_${string}`
-
accountAddress: `ak_${string}`
-
options: {
combine?: boolean;
onNode: Node;
top?: number | `kh_${string}` | `mh_${string}`;
txEvents?: boolean;
}
-
Optional
combine?: boolean
-
-
Optional
top?: number | `kh_${string}` | `mh_${string}`
-
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