relayer

AddGasSponsor

SecurityApiKeyAuth
Request
Request Body schema: application/json
active
boolean
address
string
gasTankId
number
name
string
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/AddGasSponsor
Request samples
application/json
{
  • "active": true,
  • "address": "string",
  • "gasTankId": 0,
  • "name": "string",
  • "projectId": 0
}
Response samples
application/json
{
  • "gasSponsor": {
    },
  • "status": true
}

AddGasTank

SecurityApiKeyAuth
Request
Request Body schema: application/json
feeMarkupFactor
number
name
string
unlimited
boolean
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/AddGasTank
Request samples
application/json
{
  • "feeMarkupFactor": 0,
  • "name": "string",
  • "unlimited": true
}
Response samples
application/json
{
  • "gasTank": {
    },
  • "status": true
}

AddressGasSponsors

SecurityApiKeyAuth
Request
Request Body schema: application/json
address
string
object (Page)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/AddressGasSponsors
Request samples
application/json
{
  • "address": "string",
  • "page": {
    }
}
Response samples
application/json
{
  • "gasSponsors": [
    ],
  • "page": {
    }
}

AdjustGasTankBalance

SecurityApiKeyAuth
Request
Request Body schema: application/json
amount
number
id
number
nonce
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/AdjustGasTankBalance
Request samples
application/json
{
  • "amount": 0,
  • "id": 0,
  • "nonce": 0
}
Response samples
application/json
{
  • "adjustment": {
    },
  • "status": true
}

FeeOptions

SecurityApiKeyAuth
Request
Request Body schema: application/json
data
string
simulate
boolean
to
string
wallet
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/FeeOptions
Request samples
application/json
{
  • "data": "string",
  • "simulate": true,
  • "to": "string",
  • "wallet": "string"
}
Response samples
application/json
{
  • "options": [
    ],
  • "quote": "string",
  • "sponsored": true
}

FeeTokens

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Relayer_FeeTokens_Request)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/FeeTokens
Request samples
application/json
{ }
Response samples
application/json
{
  • "isFeeRequired": true,
  • "tokens": [
    ]
}

GetChainID

TODO: return a string instead

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Relayer_GetChainID_Request)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/GetChainID
Request samples
application/json
{ }
Response samples
application/json
{
  • "chainID": 0
}

GetGasSponsor

SecurityApiKeyAuth
Request
Request Body schema: application/json
id
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/GetGasSponsor
Request samples
application/json
{
  • "id": 0
}
Response samples
application/json
{
  • "gasSponsor": {
    }
}

GetGasTank

SecurityApiKeyAuth
Request
Request Body schema: application/json
id
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/GetGasTank
Request samples
application/json
{
  • "id": 0
}
Response samples
application/json
{
  • "gasTank": {
    }
}

GetGasTankBalanceAdjustment

SecurityApiKeyAuth
Request
Request Body schema: application/json
id
number
nonce
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/GetGasTankBalanceAdjustment
Request samples
application/json
{
  • "id": 0,
  • "nonce": 0
}
Response samples
application/json
{
  • "adjustment": {
    }
}

GetMetaTransactions

SecurityApiKeyAuth
Request
Request Body schema: application/json
gasTankId
number
object (Page)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/GetMetaTransactions
Request samples
application/json
{
  • "gasTankId": 0,
  • "page": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "page": {
    },
  • "transactions": [
    ]
}

GetMetaTxnNetworkFeeOptions

TODO: deprecated, to be removed by https://github.com/0xsequence/stack/pull/356 at a later date

SecurityApiKeyAuth
Request
Request Body schema: application/json
payload
string
walletConfig
object
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/GetMetaTxnNetworkFeeOptions
Request samples
application/json
{
  • "payload": "string",
  • "walletConfig": { }
}
Response samples
application/json
{
  • "options": [
    ]
}

GetMetaTxnNonce

SecurityApiKeyAuth
Request
Request Body schema: application/json
space
string
walletContractAddress
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/GetMetaTxnNonce
Request samples
application/json
{
  • "space": "string",
  • "walletContractAddress": "string"
}
Response samples
application/json
{
  • "nonce": "string"
}

GetMetaTxnReceipt

TODO: one day, make GetMetaTxnReceipt respond immediately with receipt or not and add WaitTransactionReceipt method, which will block and wait, similar to how GetMetaTxnReceipt is implemented now. For backwards compat, we can leave the current GetMetaTxnReceipt how it is, an deprecate it, and introduce new, GetTransactionReceipt and WaitTransactionReceipt methods we can also accept metaTxnId and txnHash .. so can take either or.. I wonder if ERC-4337 has any convention on this?

SecurityApiKeyAuth
Request
Request Body schema: application/json
metaTxID
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/GetMetaTxnReceipt
Request samples
application/json
{
  • "metaTxID": "string"
}
Response samples
application/json
{
  • "receipt": {
    }
}

GetSequenceContext

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Relayer_GetSequenceContext_Request)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/GetSequenceContext
Request samples
application/json
{ }
Response samples
application/json
{
  • "data": {
    }
}

ListGasSponsors

SecurityApiKeyAuth
Request
Request Body schema: application/json
gasTankId
number
object (Page)
projectId
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/ListGasSponsors
Request samples
application/json
{
  • "gasTankId": 0,
  • "page": {
    },
  • "projectId": 0
}
Response samples
application/json
{
  • "gasSponsors": [
    ],
  • "page": {
    }
}

ListGasTankBalanceAdjustments

SecurityApiKeyAuth
Request
Request Body schema: application/json
id
number
object (Page)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/ListGasTankBalanceAdjustments
Request samples
application/json
{
  • "id": 0,
  • "page": {
    }
}
Response samples
application/json
{
  • "adjustments": [
    ],
  • "page": {
    }
}

NextGasTankBalanceAdjustmentNonce

SecurityApiKeyAuth
Request
Request Body schema: application/json
id
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/NextGasTankBalanceAdjustmentNonce
Request samples
application/json
{
  • "id": 0
}
Response samples
application/json
{
  • "nonce": 0
}

PendingTransactions

Pending transactions waiting to be mined for an account. This endpoint is just a sugar of SentTransactions with the filter set to pending: true.

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Page)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/PendingTransactions
Request samples
application/json
{
  • "page": {
    }
}
Response samples
application/json
{
  • "page": {
    },
  • "transactions": [
    ]
}

Ping

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Relayer_Ping_Request)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/Ping
Request samples
application/json
{ }
Response samples
application/json
{
  • "status": true
}

RemoveGasSponsor

SecurityApiKeyAuth
Request
Request Body schema: application/json
id
number
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/RemoveGasSponsor
Request samples
application/json
{
  • "id": 0
}
Response samples
application/json
{
  • "status": true
}

ReportGasSponsorUsage

SecurityApiKeyAuth
Request
Request Body schema: application/json
endTime
string
gasTankId
number
projectId
number
startTime
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/ReportGasSponsorUsage
Request samples
application/json
{
  • "endTime": "string",
  • "gasTankId": 0,
  • "projectId": 0,
  • "startTime": "string"
}
Response samples
application/json
{
  • "gasSponsorUsage": [
    ]
}

RuntimeStatus

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Relayer_RuntimeStatus_Request)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/RuntimeStatus
Request samples
application/json
{ }
Response samples
application/json
{
  • "status": {
    }
}

SendMetaTxn

Transactions TODO (future): rename this to just, 'SendTransaction(txn: MetaTransaction)' or 'SendTransaction(txn: SignedTransaction)', or something.. Project ID is only used by service and admin calls. Other clients must have projectID passed via the context TODO: rename return txnHash: string to metaTxnID: string

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (MetaTxn)
projectID
number
quote
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/SendMetaTxn
Request samples
application/json
{
  • "call": {
    },
  • "projectID": 0,
  • "quote": "string"
}
Response samples
application/json
{
  • "status": true,
  • "txnHash": "string"
}

SentTransactions

Sent transactions from an account. If filter is omitted then it will return all transactions.

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (SentTransactionsFilter)
object (Page)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/SentTransactions
Request samples
application/json
{
  • "filter": {
    },
  • "page": {
    }
}
Response samples
application/json
{
  • "page": {
    },
  • "transactions": [
    ]
}

Simulate

SecurityApiKeyAuth
Request
Request Body schema: application/json
transactions
string
wallet
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/Simulate
Request samples
application/json
{
  • "transactions": "string",
  • "wallet": "string"
}
Response samples
application/json
{
  • "results": [
    ]
}

UpdateGasSponsor

SecurityApiKeyAuth
Request
Request Body schema: application/json
active
boolean
id
number
name
string
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/UpdateGasSponsor
Request samples
application/json
{
  • "active": true,
  • "id": 0,
  • "name": "string"
}
Response samples
application/json
{
  • "gasSponsor": {
    },
  • "status": true
}

UpdateGasTank

SecurityApiKeyAuth
Request
Request Body schema: application/json
feeMarkupFactor
number
id
number
name
string
unlimited
boolean
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/UpdateGasTank
Request samples
application/json
{
  • "feeMarkupFactor": 0,
  • "id": 0,
  • "name": "string",
  • "unlimited": true
}
Response samples
application/json
{
  • "gasTank": {
    },
  • "status": true
}

UpdateMetaTxnGasLimits

TODO: deprecated, to be removed by https://github.com/0xsequence/stack/pull/356 at a later date

SecurityApiKeyAuth
Request
Request Body schema: application/json
payload
string
walletAddress
string
walletConfig
object
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/UpdateMetaTxnGasLimits
Request samples
application/json
{
  • "payload": "string",
  • "walletAddress": "string",
  • "walletConfig": { }
}
Response samples
application/json
{
  • "payload": "string"
}

Version

SecurityApiKeyAuth
Request
Request Body schema: application/json
object (Relayer_Version_Request)
Responses
200

OK

4XX

Client error

5XX

Server error

post/rpc/Relayer/Version
Request samples
application/json
{ }
Response samples
application/json
{
  • "version": {
    }
}