terra_sdk.client.lcd.api.feegrant
AsyncFeeGrantAPI Objects
_1class AsyncFeeGrantAPI(BaseAsyncAPI)
allowances
_1async def allowances(address: AccAddress, params: Optional[APIParams] = None) -> (Allowance, dict)
fetch fee allowances
Arguments:
addressAccAddress - grantee addressparamsAPIParams, optional - additional params for the API like pagination
Returns:
Allowances[]- granted allowancespagination[]- pagination info
allowance
_1async def allowance(granter: AccAddress, grantee: AccAddress, params: Optional[APIParams] = None) -> Allowance
fetch granter's allowance for the grantee
Arguments:
granterAccAddress - granter is the address of the user granting an allowance of their funds.granteeAccAddress - grantee is the address of the user being granted an allowance of another user’s funds.paramsAPIParams, optional - additional params for the API like pagination
Returns:
Allowance- granted allowance
allowances_by_granter
_1async def allowances_by_granter(granter: AccAddress, params: Optional[APIParams] = None) -> Allowance
all the grants given by an granter
Arguments:
granterAccAddress - granter is the address of the user granting an allowance of their funds.paramsAPIParams, optional - additional params for the API like pagination
Returns:
Allowance- granted allowance