Skip to main content
Version: 0.4

Relayer Fees for Specific Transaction Types

await api.query.getRelayerFees(avnRelayerAddress, user, _transaction_type);

The will return an object detailing the default fees a particular relayer charges, in AVT, to execute a specific transaction for a particular user account.


const AvnApi = require("avn-api");
const GATEWAY = "<endpoint_url>"; //Replace the endpoint_url with the url received from Aventus.
const api = new AvnApi(GATEWAY);

const avnRelayerAddress = "5DA...gxV"; //replace with the relayer address received from Aventus
const user = "5DA...gxV"; //replace with your address on the Aventus network.
const _transaction_type = "proxyAvtTransfer"; //example of a transaction type

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

const fees = await api.query.getRelayerFees(

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

Example Output

Below is an example of a returned object showing the transaction types supported by the relayer and what it charges for each transaction type.