octez.js TypeDocs
    Preparing search index...

    Function buildEvmToMichelsonCall

    • 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.

      Parameters

      Returns PrecompileCall

      const call = buildEvmToMichelsonCall({ kind: 'transfer', destination: 'tz1…', amount: 1000n });
      await walletClient.sendTransaction({ to: call.to, data: call.data, value: call.value, gas: call.gasLimit });