Skip to main content
Version: 0.7

Confirm Token Lift

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

await api.send.confirmTokenLift(
AVN_RELAYER,
ETHEREUM_TRANSACTION_HASH_FROM_LIFT
);
info

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

You can get the AVN_GATEWAY_URL and AVN_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);

const AVN_RELAYER = "5Fb...yTh";

// 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
(
AVN_RELAYER,
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.