Wrap a Michelson runtime operation into a call to the NAC precompile, so that it can be signed and sent on the EVM runtime.
The result is an unsigned EVM transaction (to, data, value, gasLimit) to complete, sign and send with an EVM library.
to
data
value
gasLimit
const call = buildEvmToMichelsonCall({ kind: 'transfer', destination: 'tz1…', amount: 1000n });await walletClient.sendTransaction({ to: call.to, data: call.data, value: call.value, gas: call.gasLimit }); Copy
const call = buildEvmToMichelsonCall({ kind: 'transfer', destination: 'tz1…', amount: 1000n });await walletClient.sendTransaction({ to: call.to, data: call.data, value: call.value, gas: call.gasLimit });
Wrap a Michelson runtime operation into a call to the NAC precompile, so that it can be signed and sent on the EVM runtime.
The result is an unsigned EVM transaction (
to,data,value,gasLimit) to complete, sign and send with an EVM library.