Skip to main content
Version: 1.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>",
relayer: '5FgyN...'
};
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.