Paymaster

Create a new paymaster.

Changed on

Create a new paymaster.

This object represents the paymaster that will be used to pay the gas fees of the transactions.

post/v1/paymasters

Request

  • Base URL: https://api.openfort.io
  • URL: https://api.openfort.io/v1/paymasters
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

addressstring required

Specifies the address of the paymaster

urlstring

Specifies the paymaster URL

contextobject

Specifies the context, that is, the arbitrary repositories that the specific paymaster may require

namestring

Specifies the name of the paymaster

Example request

{
  "address": "0x7d526b7e99fbf52850a183...",
  "url": "https://rpc.mypaymaster.xyz",
  "context": {
    "key": "value"
  }
}

Response

Created

idstring required
object'paymaster' required
createdAtinteger required
addressstring required
urlstring
contextobject

Changes