Obtain Relay Construction Payload
The returned values — the relayer’s on-chain address and the caller’s current nonce — are the two pieces of information a client needs to construct a valid meta-transaction for POST /submit.
Endpoint
Section titled “Endpoint”GET /relay-payloadServer: https://api.openfish.fun
Authentication: None required
Query Parameters
Section titled “Query Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
address | string | Yes | User’s Ethereum address |
Responses
Section titled “Responses”200 — Payload assembled
Section titled “200 — Payload assembled”| Field | Type | Description |
|---|---|---|
address | string | Relayer’s Ethereum address (the account that sponsors gas) |
nonce | integer | User’s current meta-transaction nonce |
Sample Response:
{ "address": "0x6e0c80c90ea6c15917308F820Eac91Ce2724B5b5", "nonce": 32}500 — Server Error
Section titled “500 — Server Error”{ "error": "Internal server error" }