executeAsyncTransaction
Send transaction to Bcode service that need to be executed in async mode. API return a requestId
needed to refetch transaction status later.
Param | Description |
---|---|
tx | Array of interested contract addresses |
optionals | Object with webhookUrl, secret and metadata |
Example:
type MetaTransaction = {
contractAddress: string;
userAddress: string;
functionSignature: string;
r: string;
s: string;
v: any;
};
type Optionals = {
webhookUrl: string | null;
metadata: { [key: string]: any } | null;
secret: string | null;
Request meta transaction notarization, return notarization receipt.
Param | Description |
---|---|
tx | Transaction object returned by prepareTransaction function |
optionals | Object with webhookUrl, secret and metadata |
Example:
type Optionals = {
webhookUrl: string | null;
metadata: { [key: string]: any } | null;
secret: string | null;
};
async executeAsyncTransaction(tx: MetaTransaction, optionals?: Optionals)