Wallet
createTransaction()
client.wallet.createTransaction(arg: {
network: InfuraNetwork,
tx: TransactionRequest
}): Promise< id: string, hash: string >;
Allow to create a blockchain transaction request using the infura network.
Parameter
Parameter | Description |
---|---|
network | The network to use for the transaction. Defaults to 'mainnet'. |
tx | The transaction request object containing transaction details. |
See: InfuraNetwork
, TransactionRequest
(opens in a new tab)
createSignature()
client.wallet.createSignature(arg: {
network: InfuraNetwork,
messsage: string
}): Promise<string>;
Sign a message.
Parameter
Parameter | Description |
---|---|
network | The network to use for the transaction. Defaults to 'mainnet'. |
message | A string that needs to be signed. |
See: InfuraNetwork