Wallet

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

ParameterDescription
networkThe network to use for the transaction. Defaults to 'mainnet'.
txThe 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

ParameterDescription
networkThe network to use for the transaction. Defaults to 'mainnet'.
messageA string that needs to be signed.

See: InfuraNetwork