docs: sync Polymarket docs - 2026-04-23

- v2-migration.md: add builder API key clarification note
- relayer/submit-a-transaction.md: document POST /submit now returns immediately without transactionHash
- relayer/get-a-transaction-by-id.md: add note to poll for onchain transactionHash after submission
This commit is contained in:
Etherdrake
2026-04-23 22:09:56 +02:00
parent 920fcbd1c4
commit 454358fdc1
3 changed files with 19 additions and 5 deletions
@@ -6,6 +6,8 @@
> Gets a transaction submitted to the Relayer. Takes in a required transaction ID as a query parameter.
Poll this endpoint with the `transactionID` returned from `POST /submit` to retrieve the onchain `transactionHash` once the transaction has been broadcast.
@@ -50,6 +52,11 @@ paths:
description: >
Gets a transaction submitted to the Relayer. Takes in a required
transaction ID as a query parameter.
Poll this endpoint with the `transactionID` returned from `POST /submit`
to retrieve the onchain `transactionHash` once the transaction has been
broadcast.
parameters:
- name: id
in: query
@@ -6,6 +6,8 @@
> Submit a transaction request to the Relayer. Authenticated using Builder API Keys or Relayer API Keys.
Returns immediately with the `transactionID` and a `state` of `STATE_NEW`. The onchain transaction hash is **not** included in this response — poll `GET /transaction` with the returned `transactionID` to retrieve the `transactionHash` once the transaction has been broadcast.
**Builder API Key auth headers:**
- `POLY_BUILDER_API_KEY`
- `POLY_BUILDER_TIMESTAMP`
@@ -62,6 +64,12 @@ paths:
API Keys or Relayer API Keys.
Returns immediately with the `transactionID` and a `state` of
`STATE_NEW`. The onchain transaction hash is **not** included in this
response — poll `GET /transaction` with the returned `transactionID` to
retrieve the `transactionHash` once the transaction has been broadcast.
**Builder API Key auth headers:**
- `POLY_BUILDER_API_KEY`
@@ -146,7 +154,6 @@ paths:
$ref: '#/components/schemas/SubmitResponse'
example:
transactionID: 0190b317-a1d3-7bec-9b91-eeb6dcd3a620
transactionHash: ''
state: STATE_NEW
'400':
description: Bad Request - Invalid transaction payload, fields, or signature
@@ -247,10 +254,6 @@ components:
type: string
description: Unique identifier for the submitted transaction
example: 0190b317-a1d3-7bec-9b91-eeb6dcd3a620
transactionHash:
type: string
description: Onchain transaction hash (empty on initial submission)
example: ''
state:
type: string
description: Current state of the transaction
+4
View File
@@ -387,6 +387,10 @@ V2 replaces the old builder authentication flow (HMAC headers + separate signing
`BuilderConfig` still exists, but its shape changed. In V1 it wrapped HMAC credentials from `@polymarket/builder-signing-sdk`. In V2 it's just `{ builderCode: string }`.
</Note>
<Note>
**Your builder API key isn't retired.** The HMAC-based builder API key is still used to authenticate with the [Relayer](/trading/gasless) for gasless transactions. Only the order-signing flow moves to the `builderCode` field — your relayer integration keeps the same credentials.
</Note>
<CodeGroup>
```typescript Before (V1) theme={null}
import { BuilderConfig, BuilderApiKeyCreds } from "@polymarket/builder-signing-sdk";