Signing
ThePortal
instance includes a number of helper functions to allow you to execute Provider
requests without having to worry about encoding, request format, or what method to pass in your request. These helper functions allows you to easily sign and submit transactions, sign messages, and even sign typed data.
Raw Requests with the Provider
Estimating Gas
By default, Portal will estimate and populate thegas
property in a transaction
object if the property is undefined.
To estimate the gas
value manually use the eth_estimateGas
RPC call and pass in your transaction as the parameter.