Class AccountBaseAbstract
Constructors
Properties
Readonly
address
address: `ak_${string}`
Methods
Abstract
sign
- sign(data, options?): Promise<Uint8Array>
Parameters
- data: string | Uint8Array
Optional
options: {
aeppOrigin?: string;
aeppRpcClientId?: string;
}Optional
aeppOrigin?: string
Optional
aeppRpcClientId?: string
Returns Promise<Uint8Array>
Signature
Abstract
signDelegation
- signDelegation(delegation, options?): Promise<`sg_${string}`>
Parameters
- delegation: `ba_${string}`
Optional
options: {
aeppOrigin?: string;
aeppRpcClientId?: string;
networkId?: string;
}Optional
aeppOrigin?: string
Optional
aeppRpcClientId?: string
Optional
networkId?: string
Returns Promise<`sg_${string}`>
Signature
Abstract
signMessage
- signMessage(message, options?): Promise<Uint8Array>
Parameters
- message: string
Optional
options: {
aeppOrigin?: string;
aeppRpcClientId?: string;
}Optional
aeppOrigin?: string
Optional
aeppRpcClientId?: string
Returns Promise<Uint8Array>
Signature
Abstract
signTransaction
- signTransaction(tx, options): Promise<`tx_${string}`>
Parameters
- tx: `tx_${string}`
- options: {
aeppOrigin?: string;
aeppRpcClientId?: string;
authData?: AuthData | ((tx: `tx_${string}`) => Promise<AuthData>);
innerTx?: boolean;
networkId?: string;
onCompiler?: CompilerBase;
onNode?: Node;
}Optional
aeppOrigin?: string
Optional
aeppRpcClientId?: string
Optional
authData?: AuthData | ((tx: `tx_${string}`) => Promise<AuthData>)
Optional
innerTx?: boolean
Optional
networkId?: string
Optional
onNode?: Node
Returns Promise<`tx_${string}`>
Signed transaction
Abstract
signTypedData
- signTypedData(data, aci, options?): Promise<`sg_${string}`>
Parameters
- data: `cb_${string}`
- aci: AciValue
Optional
options: Domain & {
aeppOrigin?: string;
aeppRpcClientId?: string;
}
Returns Promise<`sg_${string}`>
Signature
Account is one of the three basic building blocks of an AeSdk and provides access to a signing key pair.