From 60a0c8641413f349ac7a391d41231376b156a00f Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Tue, 27 Aug 2024 15:45:37 -0500 Subject: [PATCH] docs: more --- docs/userguides/config.md | 21 +++++++++++++++++++++ docs/userguides/networks.md | 9 ++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/docs/userguides/config.md b/docs/userguides/config.md index 48322482e4..351e648507 100644 --- a/docs/userguides/config.md +++ b/docs/userguides/config.md @@ -189,6 +189,27 @@ request_header: Content-Type: application/json ``` +You can also typically specify request headers at the ecosystem, network, and provider levels: + +```yaml +# NOTE: All the headers are the same only for demo purposes. +# You can use headers you want for any of these config locations. +ethereum: + # Apply to all requests made to ethereum networks. + request_headers: + Content-Type: application/json + + mainnet: + # Apply to all requests made to ethereum:mainnet (using any provider) + request_headers: + Content-Type: application/json + +node: + # Apply to any request using the `node` provider. + request_headers: + Content-Type: application/json +``` + ## Testing Configure your test accounts: diff --git a/docs/userguides/networks.md b/docs/userguides/networks.md index d1faf84794..99100c8c13 100644 --- a/docs/userguides/networks.md +++ b/docs/userguides/networks.md @@ -355,13 +355,16 @@ request_header: Top-Level: "UseThisOnEveryRequest" ethereum: - request_header: "UseThisOnEveryEthereumRequest" + request_header: + Ecosystem-Level: "UseThisOnEveryEthereumRequest" mainnet: - request_header: "UseThisOnAllRequestsToEthereumMainnet" + request_header: + Network-Level: "UseThisOnAllRequestsToEthereumMainnet" node: - request_header: "UseThisOnAllRequestsUsingNodeProvider" + request_header: + Provider-Level: "UseThisOnAllRequestsUsingNodeProvider" ``` ## Local Network