Skip to main content

Fee payer

Addresses may be used to sponsor the gas fees of transactions (acting as a "fee payer").

By default, addresses will be denied from being used for this. An address (or an account that an address is in) must be explicitly allowed for being a fee-payer.

On our UI, you can easily configure individual addresses or accounts of addresses to allow fee-payer.

Allowing an address individually

treasury addresses fee-payer allow "YOUR_ADDRESS"

Note this won't work if the address is in an account explicitly denying fee-payer.

Allowing an account

Enabling on an account will mean all contained addresses will be able to be used as fee-payers.

treasury account fee-payer allow "YOUR_ACCOUNT"

Any change resulting in a conflicting fee-payer policy will be rejected.

Using fee payer

Once an address is allowed to be a fee-payer, you need only specify it (or an account) for one of your transactions. The address, or the default address of an account, will be used to sponsor the transaction fees.

treasury transfers create --chains SOL --from "FROM" --to "TO" --fee-payer "FEE_PAYER"

Typically users will create a single account with addresses for each chain, each funded with native assets. Then this single account can be used like a gas-station to fund all transaction fees.