Skip to main content
Version: 3.3.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 { AvnApi, SetupMode, SigningMode } = require("avn-api");
const AVN_GATEWAY_URL = "<node_url>";

const singleUserOptions = {
suri: "0x5392ca60a61aea99fce14358798de93c1bc11c3696a905718738c71fae539c24", // this is from the generated example account
setupMode: SetupMode.SingleUser,
signingMode: SigningMode.SuriBased,
};

const avnSdk = new AvnApi(AVN_GATEWAY_URL, singleUserOptions);

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

async function main() {
await avnSdk.init();
const api = await avnSdk.apis();

const request_id = await api.send.confirmTokenLift(
ETHEREUM_TRANSACTION_HASH_FROM_LIFT
);
console.log(request_id);
}

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


tip

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