Interface HederaNativeWallet
interface HederaNativeWallet { buildAndApproveSession(accounts,
__namedParameters): Promise<Struct>; executeSessionRequest(event,
hederaWallet): Promise<void>; getHederaWallet(chainId,
accountId,
privateKey,
_provider?): default; hedera_executeTransaction(id,
topic,
body,
signer): Promise<void>; hedera_getNodeAddresses(id,
topic,
_,
signer): Promise<void>; hedera_signAndExecuteQuery(id,
topic,
body,
signer): Promise<void>; hedera_signAndExecuteTransaction(id,
topic,
body,
signer): Promise<void>; hedera_signMessage(id,
topic,
body,
signer): Promise<void>; hedera_signTransaction(id,
topic,
body,
signer): Promise<void>; parseSessionRequest(event,
shouldThrow): { accountId?: default; body?: string | default | Uint8Array | default<any>; chainId: HederaChainId; id: number; method: HederaJsonRpcMethod; topic: string; }; rejectSessionRequest(event,
error): Promise<void>; } Methods
buildAndApproveSession
- buildAndApproveSession(accounts, __namedParameters): Promise<Struct>
Parameters
accounts: string[]
__namedParameters: SessionProposal
Returns Promise<Struct>
executeSessionRequest
- executeSessionRequest(event, hederaWallet): Promise<void>
Parameters
event: SessionRequest
hederaWallet: default
Returns Promise<void>
getHederaWallet
- getHederaWallet(chainId, accountId, privateKey, _provider?): default
Parameters
accountId: string | default
privateKey: string
Optional
_provider: default
Returns default
hedera_executeTransaction
- hedera_executeTransaction(id, topic, body, signer): Promise<void>
Parameters
id: number
topic: string
body: default
signer: default
Returns Promise<void>
hedera_getNodeAddresses
- hedera_getNodeAddresses(id, topic, _, signer): Promise<void>
Parameters
id: number
topic: string
_: any
signer: default
Returns Promise<void>
hedera_signAndExecuteQuery
- hedera_signAndExecuteQuery(id, topic, body, signer): Promise<void>
Parameters
id: number
topic: string
body: default<any>
signer: default
Returns Promise<void>
hedera_signAndExecuteTransaction
- hedera_signAndExecuteTransaction(id, topic, body, signer): Promise<void>
Parameters
id: number
topic: string
body: default
signer: default
Returns Promise<void>
hedera_signMessage
- hedera_signMessage(id, topic, body, signer): Promise<void>
Parameters
id: number
topic: string
body: string
signer: default
Returns Promise<void>
hedera_signTransaction
- hedera_signTransaction(id, topic, body, signer): Promise<void>
Parameters
id: number
topic: string
body: Uint8Array
signer: default
Returns Promise<void>
parseSessionRequest
- parseSessionRequest(event, shouldThrow): {
accountId?: default;
body?: string | default | Uint8Array | default<any>;
chainId: HederaChainId;
id: number;
method: HederaJsonRpcMethod;
topic: string;
} Parameters
event: SessionRequest
shouldThrow: boolean
Returns {
accountId?: default;
body?: string | default | Uint8Array | default<any>;
chainId: HederaChainId;
id: number;
method: HederaJsonRpcMethod;
topic: string;
}
Optional
accountId?: default
Optional
body?: string | default | Uint8Array | default<any>
id: number
topic: string
rejectSessionRequest
- rejectSessionRequest(event, error): Promise<void>
Parameters
event: SessionRequest
error: {
code: number;
message: string;
}
code: number
message: string
Returns Promise<void>