OneSource Web3 API Reference
GraphQL Endpoints
The OneSource Web3 API receives requests at the following endpoint URLs:
- Avalanche C-Chain: https://api.onesource.io/federation/avax/graphql
- Base: https://api.onesource.io/federation/base/graphql
- Ethereum Mainnet: https://api.onesource.io/federation/ethereum/graphql
- Optimism: https://api.onesource.io/federation/optimism/graphql
- Sepolia Testnet: https://api.onesource.io/federation/sepolia/graphql
- Shape: https://api.onesource.io/federation/shape/graphql
Using the API Reference
When using the API Reference, it may be helpful to refer to the GraphQL documentation for information on GraphQL terms and concepts.
Defined below are terms as they relate to this API Reference.
Queries
The root Type that is the entry point for all read operations.
| Term | Description |
|---|---|
| Arguments | Customizes Query behavior. |
| Return Type | Usually an Object, what constitutes a response to a Query. |
Types
Types define the shape and structure of the data received in response to a Query.
| Term | Description |
|---|---|
| Fields | A unit of data that can be requested from a Type. |
| Member Of | The schema components of which this Type is a constituent. |
| Returned By | The Types that return this Type as a response. |
| Values | Predefined, named constants that represent the only valid options for a Field or Argument. |