Skip to main content

terra_sdk.client.lcd.api.feegrant

AsyncFeeGrantAPI Objects


_1
class AsyncFeeGrantAPI(BaseAsyncAPI)

allowances


_1
async def allowances(address: AccAddress, params: Optional[APIParams] = None) -> (Allowance, dict)

fetch fee allowances

Arguments:

  • address AccAddress - grantee address
  • params APIParams, optional - additional params for the API like pagination

Returns:

  • Allowances[] - granted allowances
  • pagination[] - pagination info

allowance


_1
async def allowance(granter: AccAddress, grantee: AccAddress, params: Optional[APIParams] = None) -> Allowance

fetch granter's allowance for the grantee

Arguments:

  • granter AccAddress - granter is the address of the user granting an allowance of their funds.
  • grantee AccAddress - grantee is the address of the user being granted an allowance of another user’s funds.
  • params APIParams, optional - additional params for the API like pagination

Returns:

  • Allowance - granted allowance

allowances_by_granter


_1
async def allowances_by_granter(granter: AccAddress, params: Optional[APIParams] = None) -> Allowance

all the grants given by an granter

Arguments:

  • granter AccAddress - granter is the address of the user granting an allowance of their funds.
  • params APIParams, optional - additional params for the API like pagination

Returns:

  • Allowance - granted allowance