Skip to main content

MavrykConfigSO scriptable object

The MavrykConfigSO scriptable object sets the RPC node that the SDK sends Mavryk transactions to.

To use this object, create an instance of it, put your information in its fields, and then drag this instance of the MavrykConfigSO scriptable object to the Config field of the MavrykManager prefab.

Adding the Pinata API key and the data provider to the MavrykConfigSO object

Properties

  • Script: The attached script that implements the object
  • Network: A variable that lets you select which network to use, such as Mavryk Mainnet or the Basenet testnet
  • RPC Url Format: The URL of the RPC node to use; this value replaces the variable {network} with the value of the Network field
  • Request Timeout Seconds: The time in seconds to wait for a response from the indexer
  • Pinata Api Key: The Pinata JWT (not the API key or secret key) to use to upload files and data to IPFS
  • Data Provider Config: The instance of the DataProviderConfig scriptable object to use

For more information about RPC nodes, see The RPC protocol.