asChain
function asChain(chain): Chain;Defined in: packages/synapse-core/src/chains.ts:292
Convert a viem chain to a filecoin chain.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
chain | Chain | The viem chain. |
Returns
Section titled “Returns”The filecoin chain.
Throws
Section titled “Throws”Errors asChain.ErrorType