Interface: X402FetchOptions¶
Defined in: rine-ts-sdk/src/resources/x402-fetch.ts:29
Properties¶
| Property | Type | Description | Defined in |
|---|---|---|---|
agentId |
string |
Agent id whose wallet signs (the keys/{agentId}/ folder). |
rine-ts-sdk/src/resources/x402-fetch.ts:33 |
configDir |
string |
Config directory holding the agent's wallet key + spend policy. | rine-ts-sdk/src/resources/x402-fetch.ts:31 |
fetchImpl? |
{ (input, init?): Promise\<Response>; (input, init?): Promise\<Response>; } |
Injectable fetch (defaults to global fetch) — for tests / custom agents. |
rine-ts-sdk/src/resources/x402-fetch.ts:46 |
keysClient |
CachingClient |
The core HTTP client that fetches the agent's published keys, used to check the org's signature on the spend policy. client.payments.x402Fetch() supplies it. |
rine-ts-sdk/src/resources/x402-fetch.ts:39 |
mode? |
SpendPolicyMode |
Whether an unsigned spend policy may be used. Defaults to the RINE_SPEND_POLICY environment variable (any when unset). |
rine-ts-sdk/src/resources/x402-fetch.ts:44 |