createHttpTransportForSolanaRpc
Creates a RpcTransport that uses JSON HTTP requests — much like the
createHttpTransport function - except that it also uses custom toJson and fromJson
functions in order to allow bigint values to be serialized and deserialized correctly over the
wire.
Since this is something specific to the Solana RPC API, these custom JSON functions are only
triggered when the request is recognized as a Solana RPC request. Normal RPC APIs should aim to
wrap their bigint values — e.g. u64 or i64 — in special value objects that represent the
number as a string to avoid numerical values going above Number.MAX_SAFE_INTEGER.
It has the same configuration options as createHttpTransport, but without the fromJson
and toJson options.
Parameters
| Parameter | Type |
|---|---|
config | Config |
Returns
RpcTransport