Skip to main content
Version: 2.0

Confirm Token Lift

Triggers the AvN confirmation of a lift operation that has previously occurred on Ethereum.

await api.send.confirmTokenLift(ETHEREUM_TRANSACTION_HASH_FROM_LIFT);
important

This operation uses a relayer account that the sender authorizes to submit the transfer transaction. You can learn more about relayers HERE.

important

You can get the AVN_GATEWAY_URL and Relayer here.

const AVN_API = require("avn-api");
const AVN_GATEWAY_URL = "<node_url>";
const options = {
suri: "<account_suri>",
};
const API = new AVN_API(AVN_GATEWAY_URL, options);

// Hash of the successful transaction on Ethereum
const ETHEREUM_TRANSACTION_HASH_FROM_LIFT = '0x64f...f64';

async function main() {
await api.init();

let result = await api.send.confirmTokenLift
(
ETHEREUM_TRANSACTION_HASH_FROM_LIFT
);
// Returns a request id
console.log(result);
}

(async () => {
await main();
})();


tip

You can query the state of your transaction here using the returned request id.