toAddress
for the transaction of sending 0.001 ETH from our MPC wallet. The Provider then receives a signed transaction from our mobile MPC library and submits that to chain using the configured RPC url.
Signing a Solana Transaction
You can use our provider just like you do with Ethereum with Solana. Simply specify the method and the chainId for Solana. This example usessolana/web3.js
to construct a transaction object to sign and pass to the multi-chain provider.
Solana Provider Methods
sol_signMessage
sol_signTransaction
sol_signAndSendTransaction
sol_signAndConfirmTransaction
Raw sign
You can now utilize our SDK to generate raw signatures that are generated using the underlying key share without adding any chain specific formatting to the signature. This effectively unlocks your ability to use the Portal SDK with any chain that usesSECP256K1
or ED25519
.
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.