payer

Nilchain payer.

class Payer(wallet_private_key: PrivateKey, chain_id: str, grpc_endpoint: str, gas_limit: int, query_timeout_seconds: int = DEFAULT_QUERY_TIMEOUT_SECONDS, query_poll_seconds: int = DEFAULT_QUERY_POLL_SECONDS)[source]

Bases: object

A payer that allows making payments on nilchain.

pay(resource: bytes, amount_unil: int) str[source]

Perform a MsgPayFor payment for the given resource.

Parameters:
  • resource – The resource to use in the transaction.

  • amount_unil – The amount of unil to send in the payment.