Create proposal
Releasing soon
This endpoint is being released and is not yet available.
Requires scope transactions:create.
ApiKeyAuthorizationBearer <sk_test_ or sk_live_ key>Your sk_live_ / sk_test_ API key
x-customer-id?stringapplication/json- body
chain*string"ethereum""base""arbitrum""polygon""celo""optimism""plasma"kind*stringWhat the Safe transaction does. params takes the matching shape: payment {token?, to, amount|amountBaseUnits}.
"payment""owner_add""owner_remove""threshold_change""reject"params*|||||nonce?integerPin the Safe nonce (for a replacement or a rejection).
0 <= valuettlSeconds?integerHow long this proposal collects signatures, in seconds: at least 3600 and at most the platform window (default 7 days).
3600 <= valueResponse Body
200application/json
The proposal, with the safeTxHash and challenge to sign
TypeScript Definitions
Use the response body type in TypeScript.
401application/json
The Authorization header is missing, malformed, or the API key is unknown or revoked
TypeScript Definitions
Use the response body type in TypeScript.
429application/json
The API key exceeded its request budget for the window
TypeScript Definitions
Use the response body type in TypeScript.
Language
curl -X POST 'https://api.pilot.shiga.io/v1/treasury/proposals' \ -H 'x-customer-id: <customer id>' \ -H 'Authorization: Bearer sk_test_...' \ -H 'Content-Type: application/json' \ -d '{ "chain": "ethereum", "kind": "payment", "params": { "to": "string" }}'{ "data": { "safeTxHash": "string", "challenge": "string", "chain": "base", "safeAddress": "string", "nonce": 0, "kind": "payment", "summary": {}, "tx": { "to": "string", "value": "string", "data": "string", "operation": 0, "safeTxGas": "string", "baseGas": "string", "gasPrice": "string", "gasToken": "string", "refundReceiver": "string", "nonce": 0 }, "requiredSignatures": 0, "collected": 0, "signers": [ { "credentialId": "string", "verifier": "string", "approvedAt": "string", "label": "string" } ], "status": "pending", "statusReason": "string", "queuePosition": 0, "expiresAt": "string", "createdAt": "string", "updatedAt": "string", "relayUserOpHash": "string", "txHash": "string", "rejectsSafeTxHash": "string", "rejectedBySafeTxHash": "string" }, "status": 200, "success": true}