@oobe-protocol-labs/synapse-client-sdk 1.0.0-beta → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +89 -0
- package/README.md +428 -1242
- package/dist/cjs/ai/gateway/index.d.ts +380 -0
- package/dist/cjs/ai/gateway/index.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/index.js +800 -0
- package/dist/cjs/ai/gateway/index.js.map +1 -0
- package/dist/cjs/ai/gateway/marketplace.d.ts +202 -0
- package/dist/cjs/ai/gateway/marketplace.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/marketplace.js +352 -0
- package/dist/cjs/ai/gateway/marketplace.js.map +1 -0
- package/dist/cjs/ai/gateway/pricing.d.ts +149 -0
- package/dist/cjs/ai/gateway/pricing.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/pricing.js +256 -0
- package/dist/cjs/ai/gateway/pricing.js.map +1 -0
- package/dist/cjs/ai/gateway/session.d.ts +191 -0
- package/dist/cjs/ai/gateway/session.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/session.js +352 -0
- package/dist/cjs/ai/gateway/session.js.map +1 -0
- package/dist/cjs/ai/gateway/types.d.ts +324 -0
- package/dist/cjs/ai/gateway/types.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/types.js +22 -0
- package/dist/cjs/ai/gateway/types.js.map +1 -0
- package/dist/cjs/ai/gateway/validator.d.ts +128 -0
- package/dist/cjs/ai/gateway/validator.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/validator.js +208 -0
- package/dist/cjs/ai/gateway/validator.js.map +1 -0
- package/dist/cjs/ai/gateway/x402/client.d.ts +274 -0
- package/dist/cjs/ai/gateway/x402/client.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/x402/client.js +470 -0
- package/dist/cjs/ai/gateway/x402/client.js.map +1 -0
- package/dist/cjs/ai/gateway/x402/facilitator.d.ts +169 -0
- package/dist/cjs/ai/gateway/x402/facilitator.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/x402/facilitator.js +292 -0
- package/dist/cjs/ai/gateway/x402/facilitator.js.map +1 -0
- package/dist/cjs/ai/gateway/x402/index.d.ts +81 -0
- package/dist/cjs/ai/gateway/x402/index.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/x402/index.js +137 -0
- package/dist/cjs/ai/gateway/x402/index.js.map +1 -0
- package/dist/cjs/ai/gateway/x402/paywall.d.ts +148 -0
- package/dist/cjs/ai/gateway/x402/paywall.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/x402/paywall.js +269 -0
- package/dist/cjs/ai/gateway/x402/paywall.js.map +1 -0
- package/dist/cjs/ai/gateway/x402/registry.d.ts +86 -0
- package/dist/cjs/ai/gateway/x402/registry.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/x402/registry.js +294 -0
- package/dist/cjs/ai/gateway/x402/registry.js.map +1 -0
- package/dist/cjs/ai/gateway/x402/types.d.ts +407 -0
- package/dist/cjs/ai/gateway/x402/types.d.ts.map +1 -0
- package/dist/cjs/ai/gateway/x402/types.js +143 -0
- package/dist/cjs/ai/gateway/x402/types.js.map +1 -0
- package/dist/cjs/ai/index.d.ts +15 -11
- package/dist/cjs/ai/index.d.ts.map +1 -1
- package/dist/cjs/ai/index.js +70 -14
- package/dist/cjs/ai/index.js.map +1 -1
- package/dist/cjs/ai/tools/index.d.ts +83 -0
- package/dist/cjs/ai/tools/index.d.ts.map +1 -0
- package/dist/cjs/ai/tools/index.js +378 -0
- package/dist/cjs/ai/tools/index.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/index.d.ts +87 -0
- package/dist/cjs/ai/tools/protocols/index.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/index.js +108 -0
- package/dist/cjs/ai/tools/protocols/index.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/jupiter/index.d.ts +8 -0
- package/dist/cjs/ai/tools/protocols/jupiter/index.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/jupiter/index.js +15 -0
- package/dist/cjs/ai/tools/protocols/jupiter/index.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/jupiter/schemas.d.ts +11 -0
- package/dist/cjs/ai/tools/protocols/jupiter/schemas.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/jupiter/schemas.js +386 -0
- package/dist/cjs/ai/tools/protocols/jupiter/schemas.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/jupiter/tools.d.ts +55 -0
- package/dist/cjs/ai/tools/protocols/jupiter/tools.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/jupiter/tools.js +86 -0
- package/dist/cjs/ai/tools/protocols/jupiter/tools.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/metaplex/index.d.ts +8 -0
- package/dist/cjs/ai/tools/protocols/metaplex/index.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/metaplex/index.js +14 -0
- package/dist/cjs/ai/tools/protocols/metaplex/index.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/metaplex/schemas.d.ts +11 -0
- package/dist/cjs/ai/tools/protocols/metaplex/schemas.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/metaplex/schemas.js +247 -0
- package/dist/cjs/ai/tools/protocols/metaplex/schemas.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/metaplex/tools.d.ts +45 -0
- package/dist/cjs/ai/tools/protocols/metaplex/tools.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/metaplex/tools.js +163 -0
- package/dist/cjs/ai/tools/protocols/metaplex/tools.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/raydium/index.d.ts +8 -0
- package/dist/cjs/ai/tools/protocols/raydium/index.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/raydium/index.js +15 -0
- package/dist/cjs/ai/tools/protocols/raydium/index.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/raydium/schemas.d.ts +11 -0
- package/dist/cjs/ai/tools/protocols/raydium/schemas.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/raydium/schemas.js +202 -0
- package/dist/cjs/ai/tools/protocols/raydium/schemas.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/raydium/tools.d.ts +50 -0
- package/dist/cjs/ai/tools/protocols/raydium/tools.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/raydium/tools.js +84 -0
- package/dist/cjs/ai/tools/protocols/raydium/tools.js.map +1 -0
- package/dist/cjs/ai/tools/protocols/shared.d.ts +143 -0
- package/dist/cjs/ai/tools/protocols/shared.d.ts.map +1 -0
- package/dist/cjs/ai/tools/protocols/shared.js +183 -0
- package/dist/cjs/ai/tools/protocols/shared.js.map +1 -0
- package/dist/cjs/ai/tools/zod/index.d.ts +35 -0
- package/dist/cjs/ai/tools/zod/index.d.ts.map +1 -0
- package/dist/cjs/ai/tools/zod/index.js +57 -0
- package/dist/cjs/ai/tools/zod/index.js.map +1 -0
- package/dist/cjs/ai/tools/zod/types.d.ts +25 -0
- package/dist/cjs/ai/tools/zod/types.d.ts.map +1 -0
- package/dist/cjs/ai/tools/zod/types.js +260 -0
- package/dist/cjs/ai/tools/zod/types.js.map +1 -0
- package/dist/cjs/core/client.d.ts +186 -0
- package/dist/cjs/core/client.d.ts.map +1 -0
- package/dist/cjs/core/client.js +250 -0
- package/dist/cjs/core/client.js.map +1 -0
- package/dist/cjs/core/errors.d.ts +81 -0
- package/dist/cjs/core/errors.d.ts.map +1 -0
- package/dist/cjs/core/errors.js +109 -0
- package/dist/cjs/core/errors.js.map +1 -0
- package/dist/cjs/core/transport.d.ts +106 -0
- package/dist/cjs/core/transport.d.ts.map +1 -0
- package/dist/cjs/core/transport.js +181 -0
- package/dist/cjs/core/transport.js.map +1 -0
- package/dist/cjs/core/types.d.ts +490 -0
- package/dist/cjs/core/types.d.ts.map +1 -0
- package/dist/cjs/core/types.js +77 -0
- package/dist/cjs/core/types.js.map +1 -0
- package/dist/cjs/das/client.d.ts +122 -0
- package/dist/cjs/das/client.d.ts.map +1 -0
- package/dist/cjs/das/client.js +173 -0
- package/dist/cjs/das/client.js.map +1 -0
- package/dist/cjs/das/index.d.ts +10 -0
- package/dist/cjs/das/index.d.ts.map +1 -0
- package/dist/cjs/das/index.js +26 -0
- package/dist/cjs/das/index.js.map +1 -0
- package/dist/cjs/das/methods/get-asset-batch.d.ts +26 -0
- package/dist/cjs/das/methods/get-asset-batch.d.ts.map +1 -0
- package/dist/cjs/das/methods/get-asset-batch.js +24 -0
- package/dist/cjs/das/methods/get-asset-batch.js.map +1 -0
- package/dist/cjs/das/methods/get-asset-proof-batch.d.ts +26 -0
- package/dist/cjs/das/methods/get-asset-proof-batch.d.ts.map +1 -0
- package/dist/cjs/das/methods/get-asset-proof-batch.js +24 -0
- package/dist/cjs/das/methods/get-asset-proof-batch.js.map +1 -0
- package/dist/cjs/das/methods/get-asset-proof.d.ts +26 -0
- package/dist/cjs/das/methods/get-asset-proof.d.ts.map +1 -0
- package/dist/cjs/das/methods/get-asset-proof.js +24 -0
- package/dist/cjs/das/methods/get-asset-proof.js.map +1 -0
- package/dist/cjs/das/methods/get-asset.d.ts +26 -0
- package/dist/cjs/das/methods/get-asset.d.ts.map +1 -0
- package/dist/cjs/das/methods/get-asset.js +24 -0
- package/dist/cjs/das/methods/get-asset.js.map +1 -0
- package/dist/cjs/das/methods/get-assets-by-authority.d.ts +45 -0
- package/dist/cjs/das/methods/get-assets-by-authority.d.ts.map +1 -0
- package/dist/cjs/das/methods/get-assets-by-authority.js +27 -0
- package/dist/cjs/das/methods/get-assets-by-authority.js.map +1 -0
- package/dist/cjs/das/methods/get-assets-by-creator.d.ts +48 -0
- package/dist/cjs/das/methods/get-assets-by-creator.d.ts.map +1 -0
- package/dist/cjs/das/methods/get-assets-by-creator.js +27 -0
- package/dist/cjs/das/methods/get-assets-by-creator.js.map +1 -0
- package/dist/cjs/das/methods/get-assets-by-group.d.ts +48 -0
- package/dist/cjs/das/methods/get-assets-by-group.d.ts.map +1 -0
- package/dist/cjs/das/methods/get-assets-by-group.js +27 -0
- package/dist/cjs/das/methods/get-assets-by-group.js.map +1 -0
- package/dist/cjs/das/methods/get-assets-by-owner.d.ts +52 -0
- package/dist/cjs/das/methods/get-assets-by-owner.d.ts.map +1 -0
- package/dist/cjs/das/methods/get-assets-by-owner.js +28 -0
- package/dist/cjs/das/methods/get-assets-by-owner.js.map +1 -0
- package/dist/cjs/das/methods/get-signatures-for-asset.d.ts +61 -0
- package/dist/cjs/das/methods/get-signatures-for-asset.d.ts.map +1 -0
- package/dist/cjs/das/methods/get-signatures-for-asset.js +27 -0
- package/dist/cjs/das/methods/get-signatures-for-asset.js.map +1 -0
- package/dist/cjs/das/methods/get-token-accounts.d.ts +58 -0
- package/dist/cjs/das/methods/get-token-accounts.d.ts.map +1 -0
- package/dist/cjs/das/methods/get-token-accounts.js +27 -0
- package/dist/cjs/das/methods/get-token-accounts.js.map +1 -0
- package/dist/cjs/das/methods/index.d.ts +17 -0
- package/dist/cjs/das/methods/index.d.ts.map +1 -0
- package/dist/cjs/das/methods/index.js +33 -0
- package/dist/cjs/das/methods/index.js.map +1 -0
- package/dist/cjs/das/methods/search-assets.d.ts +29 -0
- package/dist/cjs/das/methods/search-assets.d.ts.map +1 -0
- package/dist/cjs/das/methods/search-assets.js +28 -0
- package/dist/cjs/das/methods/search-assets.js.map +1 -0
- package/dist/cjs/das/types.d.ts +257 -0
- package/dist/cjs/das/types.d.ts.map +1 -0
- package/dist/cjs/das/types.js +3 -0
- package/dist/cjs/das/types.js.map +1 -0
- package/dist/cjs/grpc/index.d.ts +10 -0
- package/dist/cjs/grpc/index.d.ts.map +1 -0
- package/dist/cjs/grpc/index.js +26 -0
- package/dist/cjs/grpc/index.js.map +1 -0
- package/dist/cjs/grpc/parser/decoder.d.ts +117 -0
- package/dist/cjs/grpc/parser/decoder.d.ts.map +1 -0
- package/dist/cjs/grpc/parser/decoder.js +605 -0
- package/dist/cjs/grpc/parser/decoder.js.map +1 -0
- package/dist/cjs/grpc/parser/geyser-parser.d.ts +184 -0
- package/dist/cjs/grpc/parser/geyser-parser.d.ts.map +1 -0
- package/dist/cjs/grpc/parser/geyser-parser.js +279 -0
- package/dist/cjs/grpc/parser/geyser-parser.js.map +1 -0
- package/dist/cjs/grpc/parser/index.d.ts +12 -0
- package/dist/cjs/grpc/parser/index.d.ts.map +1 -0
- package/dist/cjs/grpc/parser/index.js +46 -0
- package/dist/cjs/grpc/parser/index.js.map +1 -0
- package/dist/cjs/grpc/parser/programs.d.ts +69 -0
- package/dist/cjs/grpc/parser/programs.d.ts.map +1 -0
- package/dist/cjs/grpc/parser/programs.js +273 -0
- package/dist/cjs/grpc/parser/programs.js.map +1 -0
- package/dist/cjs/grpc/parser/types.d.ts +344 -0
- package/dist/cjs/grpc/parser/types.d.ts.map +1 -0
- package/dist/cjs/grpc/parser/types.js +13 -0
- package/dist/cjs/grpc/parser/types.js.map +1 -0
- package/dist/cjs/grpc/transport.d.ts +96 -0
- package/dist/cjs/grpc/transport.d.ts.map +1 -0
- package/dist/cjs/grpc/transport.js +164 -0
- package/dist/cjs/grpc/transport.js.map +1 -0
- package/dist/cjs/grpc/types.d.ts +51 -0
- package/dist/cjs/grpc/types.d.ts.map +1 -0
- package/dist/cjs/grpc/types.js +9 -0
- package/dist/cjs/grpc/types.js.map +1 -0
- package/dist/cjs/index.d.ts +42 -27
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +54 -51
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/kit/index.d.ts +94 -0
- package/dist/cjs/kit/index.d.ts.map +1 -0
- package/dist/cjs/kit/index.js +196 -0
- package/dist/cjs/kit/index.js.map +1 -0
- package/dist/cjs/rpc/index.d.ts +9 -0
- package/dist/cjs/rpc/index.d.ts.map +1 -0
- package/dist/cjs/rpc/index.js +25 -0
- package/dist/cjs/rpc/index.js.map +1 -0
- package/dist/cjs/rpc/methods/get-account-info.d.ts +37 -0
- package/dist/cjs/rpc/methods/get-account-info.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-account-info.js +34 -0
- package/dist/cjs/rpc/methods/get-account-info.js.map +1 -0
- package/dist/cjs/rpc/methods/get-balance.d.ts +28 -0
- package/dist/cjs/rpc/methods/get-balance.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-balance.js +28 -0
- package/dist/cjs/rpc/methods/get-balance.js.map +1 -0
- package/dist/cjs/rpc/methods/get-block-commitment.d.ts +28 -0
- package/dist/cjs/rpc/methods/get-block-commitment.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-block-commitment.js +23 -0
- package/dist/cjs/rpc/methods/get-block-commitment.js.map +1 -0
- package/dist/cjs/rpc/methods/get-block-height.d.ts +27 -0
- package/dist/cjs/rpc/methods/get-block-height.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-block-height.js +27 -0
- package/dist/cjs/rpc/methods/get-block-height.js.map +1 -0
- package/dist/cjs/rpc/methods/get-block-production.d.ts +37 -0
- package/dist/cjs/rpc/methods/get-block-production.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-block-production.js +30 -0
- package/dist/cjs/rpc/methods/get-block-production.js.map +1 -0
- package/dist/cjs/rpc/methods/get-block-time.d.ts +25 -0
- package/dist/cjs/rpc/methods/get-block-time.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-block-time.js +23 -0
- package/dist/cjs/rpc/methods/get-block-time.js.map +1 -0
- package/dist/cjs/rpc/methods/get-block.d.ts +68 -0
- package/dist/cjs/rpc/methods/get-block.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-block.js +35 -0
- package/dist/cjs/rpc/methods/get-block.js.map +1 -0
- package/dist/cjs/rpc/methods/get-blocks-with-limit.d.ts +27 -0
- package/dist/cjs/rpc/methods/get-blocks-with-limit.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-blocks-with-limit.js +25 -0
- package/dist/cjs/rpc/methods/get-blocks-with-limit.js.map +1 -0
- package/dist/cjs/rpc/methods/get-blocks.d.ts +27 -0
- package/dist/cjs/rpc/methods/get-blocks.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-blocks.js +28 -0
- package/dist/cjs/rpc/methods/get-blocks.js.map +1 -0
- package/dist/cjs/rpc/methods/get-cluster-nodes.d.ts +24 -0
- package/dist/cjs/rpc/methods/get-cluster-nodes.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-cluster-nodes.js +22 -0
- package/dist/cjs/rpc/methods/get-cluster-nodes.js.map +1 -0
- package/dist/cjs/rpc/methods/get-epoch-info.d.ts +27 -0
- package/dist/cjs/rpc/methods/get-epoch-info.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-epoch-info.js +27 -0
- package/dist/cjs/rpc/methods/get-epoch-info.js.map +1 -0
- package/dist/cjs/rpc/methods/get-epoch-schedule.d.ts +24 -0
- package/dist/cjs/rpc/methods/get-epoch-schedule.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-epoch-schedule.js +22 -0
- package/dist/cjs/rpc/methods/get-epoch-schedule.js.map +1 -0
- package/dist/cjs/rpc/methods/get-fee-for-message.d.ts +28 -0
- package/dist/cjs/rpc/methods/get-fee-for-message.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-fee-for-message.js +28 -0
- package/dist/cjs/rpc/methods/get-fee-for-message.js.map +1 -0
- package/dist/cjs/rpc/methods/get-first-available-block.d.ts +24 -0
- package/dist/cjs/rpc/methods/get-first-available-block.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-first-available-block.js +22 -0
- package/dist/cjs/rpc/methods/get-first-available-block.js.map +1 -0
- package/dist/cjs/rpc/methods/get-genesis-hash.d.ts +23 -0
- package/dist/cjs/rpc/methods/get-genesis-hash.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-genesis-hash.js +22 -0
- package/dist/cjs/rpc/methods/get-genesis-hash.js.map +1 -0
- package/dist/cjs/rpc/methods/get-health.d.ts +23 -0
- package/dist/cjs/rpc/methods/get-health.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-health.js +22 -0
- package/dist/cjs/rpc/methods/get-health.js.map +1 -0
- package/dist/cjs/rpc/methods/get-highest-snapshot-slot.d.ts +27 -0
- package/dist/cjs/rpc/methods/get-highest-snapshot-slot.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-highest-snapshot-slot.js +22 -0
- package/dist/cjs/rpc/methods/get-highest-snapshot-slot.js.map +1 -0
- package/dist/cjs/rpc/methods/get-identity.d.ts +26 -0
- package/dist/cjs/rpc/methods/get-identity.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-identity.js +22 -0
- package/dist/cjs/rpc/methods/get-identity.js.map +1 -0
- package/dist/cjs/rpc/methods/get-inflation-governor.d.ts +25 -0
- package/dist/cjs/rpc/methods/get-inflation-governor.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-inflation-governor.js +24 -0
- package/dist/cjs/rpc/methods/get-inflation-governor.js.map +1 -0
- package/dist/cjs/rpc/methods/get-inflation-rate.d.ts +24 -0
- package/dist/cjs/rpc/methods/get-inflation-rate.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-inflation-rate.js +22 -0
- package/dist/cjs/rpc/methods/get-inflation-rate.js.map +1 -0
- package/dist/cjs/rpc/methods/get-inflation-reward.d.ts +29 -0
- package/dist/cjs/rpc/methods/get-inflation-reward.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-inflation-reward.js +31 -0
- package/dist/cjs/rpc/methods/get-inflation-reward.js.map +1 -0
- package/dist/cjs/rpc/methods/get-largest-accounts.d.ts +30 -0
- package/dist/cjs/rpc/methods/get-largest-accounts.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-largest-accounts.js +28 -0
- package/dist/cjs/rpc/methods/get-largest-accounts.js.map +1 -0
- package/dist/cjs/rpc/methods/get-latest-blockhash.d.ts +36 -0
- package/dist/cjs/rpc/methods/get-latest-blockhash.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-latest-blockhash.js +27 -0
- package/dist/cjs/rpc/methods/get-latest-blockhash.js.map +1 -0
- package/dist/cjs/rpc/methods/get-leader-schedule.d.ts +27 -0
- package/dist/cjs/rpc/methods/get-leader-schedule.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-leader-schedule.js +28 -0
- package/dist/cjs/rpc/methods/get-leader-schedule.js.map +1 -0
- package/dist/cjs/rpc/methods/get-max-retransmit-slot.d.ts +23 -0
- package/dist/cjs/rpc/methods/get-max-retransmit-slot.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-max-retransmit-slot.js +21 -0
- package/dist/cjs/rpc/methods/get-max-retransmit-slot.js.map +1 -0
- package/dist/cjs/rpc/methods/get-max-shred-insert-slot.d.ts +23 -0
- package/dist/cjs/rpc/methods/get-max-shred-insert-slot.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-max-shred-insert-slot.js +21 -0
- package/dist/cjs/rpc/methods/get-max-shred-insert-slot.js.map +1 -0
- package/dist/cjs/rpc/methods/get-minimum-balance-for-rent-exemption.d.ts +26 -0
- package/dist/cjs/rpc/methods/get-minimum-balance-for-rent-exemption.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-minimum-balance-for-rent-exemption.js +24 -0
- package/dist/cjs/rpc/methods/get-minimum-balance-for-rent-exemption.js.map +1 -0
- package/dist/cjs/rpc/methods/get-multiple-accounts.d.ts +35 -0
- package/dist/cjs/rpc/methods/get-multiple-accounts.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-multiple-accounts.js +32 -0
- package/dist/cjs/rpc/methods/get-multiple-accounts.js.map +1 -0
- package/dist/cjs/rpc/methods/get-program-accounts.d.ts +51 -0
- package/dist/cjs/rpc/methods/get-program-accounts.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-program-accounts.js +41 -0
- package/dist/cjs/rpc/methods/get-program-accounts.js.map +1 -0
- package/dist/cjs/rpc/methods/get-recent-performance-samples.d.ts +24 -0
- package/dist/cjs/rpc/methods/get-recent-performance-samples.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-recent-performance-samples.js +22 -0
- package/dist/cjs/rpc/methods/get-recent-performance-samples.js.map +1 -0
- package/dist/cjs/rpc/methods/get-recent-prioritization-fees.d.ts +27 -0
- package/dist/cjs/rpc/methods/get-recent-prioritization-fees.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-recent-prioritization-fees.js +22 -0
- package/dist/cjs/rpc/methods/get-recent-prioritization-fees.js.map +1 -0
- package/dist/cjs/rpc/methods/get-signature-statuses.d.ts +32 -0
- package/dist/cjs/rpc/methods/get-signature-statuses.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-signature-statuses.js +26 -0
- package/dist/cjs/rpc/methods/get-signature-statuses.js.map +1 -0
- package/dist/cjs/rpc/methods/get-signatures-for-address.d.ts +40 -0
- package/dist/cjs/rpc/methods/get-signatures-for-address.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-signatures-for-address.js +52 -0
- package/dist/cjs/rpc/methods/get-signatures-for-address.js.map +1 -0
- package/dist/cjs/rpc/methods/get-slot-leader.d.ts +26 -0
- package/dist/cjs/rpc/methods/get-slot-leader.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-slot-leader.js +26 -0
- package/dist/cjs/rpc/methods/get-slot-leader.js.map +1 -0
- package/dist/cjs/rpc/methods/get-slot-leaders.d.ts +25 -0
- package/dist/cjs/rpc/methods/get-slot-leaders.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-slot-leaders.js +23 -0
- package/dist/cjs/rpc/methods/get-slot-leaders.js.map +1 -0
- package/dist/cjs/rpc/methods/get-slot.d.ts +26 -0
- package/dist/cjs/rpc/methods/get-slot.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-slot.js +26 -0
- package/dist/cjs/rpc/methods/get-slot.js.map +1 -0
- package/dist/cjs/rpc/methods/get-stake-activation.d.ts +37 -0
- package/dist/cjs/rpc/methods/get-stake-activation.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-stake-activation.js +33 -0
- package/dist/cjs/rpc/methods/get-stake-activation.js.map +1 -0
- package/dist/cjs/rpc/methods/get-stake-minimum-delegation.d.ts +24 -0
- package/dist/cjs/rpc/methods/get-stake-minimum-delegation.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-stake-minimum-delegation.js +22 -0
- package/dist/cjs/rpc/methods/get-stake-minimum-delegation.js.map +1 -0
- package/dist/cjs/rpc/methods/get-supply.d.ts +27 -0
- package/dist/cjs/rpc/methods/get-supply.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-supply.js +28 -0
- package/dist/cjs/rpc/methods/get-supply.js.map +1 -0
- package/dist/cjs/rpc/methods/get-token-account-balance.d.ts +26 -0
- package/dist/cjs/rpc/methods/get-token-account-balance.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-token-account-balance.js +24 -0
- package/dist/cjs/rpc/methods/get-token-account-balance.js.map +1 -0
- package/dist/cjs/rpc/methods/get-token-accounts-by-delegate.d.ts +33 -0
- package/dist/cjs/rpc/methods/get-token-accounts-by-delegate.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-token-accounts-by-delegate.js +29 -0
- package/dist/cjs/rpc/methods/get-token-accounts-by-delegate.js.map +1 -0
- package/dist/cjs/rpc/methods/get-token-accounts-by-owner.d.ts +33 -0
- package/dist/cjs/rpc/methods/get-token-accounts-by-owner.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-token-accounts-by-owner.js +29 -0
- package/dist/cjs/rpc/methods/get-token-accounts-by-owner.js.map +1 -0
- package/dist/cjs/rpc/methods/get-token-largest-accounts.d.ts +31 -0
- package/dist/cjs/rpc/methods/get-token-largest-accounts.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-token-largest-accounts.js +23 -0
- package/dist/cjs/rpc/methods/get-token-largest-accounts.js.map +1 -0
- package/dist/cjs/rpc/methods/get-token-supply.d.ts +26 -0
- package/dist/cjs/rpc/methods/get-token-supply.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-token-supply.js +24 -0
- package/dist/cjs/rpc/methods/get-token-supply.js.map +1 -0
- package/dist/cjs/rpc/methods/get-transaction-count.d.ts +26 -0
- package/dist/cjs/rpc/methods/get-transaction-count.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-transaction-count.js +26 -0
- package/dist/cjs/rpc/methods/get-transaction-count.js.map +1 -0
- package/dist/cjs/rpc/methods/get-transaction.d.ts +36 -0
- package/dist/cjs/rpc/methods/get-transaction.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-transaction.js +32 -0
- package/dist/cjs/rpc/methods/get-transaction.js.map +1 -0
- package/dist/cjs/rpc/methods/get-version.d.ts +26 -0
- package/dist/cjs/rpc/methods/get-version.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-version.js +22 -0
- package/dist/cjs/rpc/methods/get-version.js.map +1 -0
- package/dist/cjs/rpc/methods/get-vote-accounts.d.ts +29 -0
- package/dist/cjs/rpc/methods/get-vote-accounts.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/get-vote-accounts.js +32 -0
- package/dist/cjs/rpc/methods/get-vote-accounts.js.map +1 -0
- package/dist/cjs/rpc/methods/index.d.ts +57 -0
- package/dist/cjs/rpc/methods/index.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/index.js +84 -0
- package/dist/cjs/rpc/methods/index.js.map +1 -0
- package/dist/cjs/rpc/methods/is-blockhash-valid.d.ts +27 -0
- package/dist/cjs/rpc/methods/is-blockhash-valid.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/is-blockhash-valid.js +27 -0
- package/dist/cjs/rpc/methods/is-blockhash-valid.js.map +1 -0
- package/dist/cjs/rpc/methods/minimum-ledger-slot.d.ts +23 -0
- package/dist/cjs/rpc/methods/minimum-ledger-slot.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/minimum-ledger-slot.js +21 -0
- package/dist/cjs/rpc/methods/minimum-ledger-slot.js.map +1 -0
- package/dist/cjs/rpc/methods/request-airdrop.d.ts +29 -0
- package/dist/cjs/rpc/methods/request-airdrop.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/request-airdrop.js +30 -0
- package/dist/cjs/rpc/methods/request-airdrop.js.map +1 -0
- package/dist/cjs/rpc/methods/send-transaction.d.ts +38 -0
- package/dist/cjs/rpc/methods/send-transaction.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/send-transaction.js +34 -0
- package/dist/cjs/rpc/methods/send-transaction.js.map +1 -0
- package/dist/cjs/rpc/methods/simulate-transaction.d.ts +63 -0
- package/dist/cjs/rpc/methods/simulate-transaction.d.ts.map +1 -0
- package/dist/cjs/rpc/methods/simulate-transaction.js +37 -0
- package/dist/cjs/rpc/methods/simulate-transaction.js.map +1 -0
- package/dist/cjs/rpc/solana-rpc.d.ts +190 -0
- package/dist/cjs/rpc/solana-rpc.d.ts.map +1 -0
- package/dist/cjs/rpc/solana-rpc.js +173 -0
- package/dist/cjs/rpc/solana-rpc.js.map +1 -0
- package/dist/cjs/utils/env.d.ts +49 -0
- package/dist/cjs/utils/env.d.ts.map +1 -0
- package/dist/cjs/utils/env.js +53 -0
- package/dist/cjs/utils/env.js.map +1 -0
- package/dist/cjs/utils/helpers.d.ts +92 -87
- package/dist/cjs/utils/helpers.d.ts.map +1 -1
- package/dist/cjs/utils/helpers.js +104 -235
- package/dist/cjs/utils/helpers.js.map +1 -1
- package/dist/cjs/utils/index.d.ts +10 -0
- package/dist/cjs/utils/index.d.ts.map +1 -0
- package/dist/cjs/utils/index.js +26 -0
- package/dist/cjs/utils/index.js.map +1 -0
- package/dist/cjs/utils/synapse.d.ts +132 -0
- package/dist/cjs/utils/synapse.d.ts.map +1 -0
- package/dist/cjs/utils/synapse.js +173 -0
- package/dist/cjs/utils/synapse.js.map +1 -0
- package/dist/cjs/websocket/client.d.ts +97 -177
- package/dist/cjs/websocket/client.d.ts.map +1 -1
- package/dist/cjs/websocket/client.js +256 -407
- package/dist/cjs/websocket/client.js.map +1 -1
- package/dist/cjs/websocket/index.d.ts +6 -3
- package/dist/cjs/websocket/index.d.ts.map +1 -1
- package/dist/cjs/websocket/index.js +21 -5
- package/dist/cjs/websocket/index.js.map +1 -1
- package/dist/cjs/websocket/types.d.ts +120 -0
- package/dist/cjs/websocket/types.d.ts.map +1 -0
- package/dist/cjs/websocket/types.js +3 -0
- package/dist/cjs/websocket/types.js.map +1 -0
- package/dist/docs/assets/highlight.css +24 -24
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/classes/DasClient.html +77 -0
- package/dist/docs/classes/GeyserParser.html +89 -0
- package/dist/docs/classes/GrpcTransport.html +41 -0
- package/dist/docs/classes/HttpTransport.html +29 -0
- package/dist/docs/classes/NetworkError.html +15 -13
- package/dist/docs/classes/RpcMethodNotFoundError.html +40 -0
- package/dist/docs/classes/SolanaError.html +40 -0
- package/dist/docs/classes/SolanaRpc.html +171 -0
- package/dist/docs/classes/SynapseClient.html +66 -54
- package/dist/docs/classes/SynapseError.html +17 -9
- package/dist/docs/classes/TimeoutError.html +40 -0
- package/dist/docs/classes/UpstreamError.html +19 -11
- package/dist/docs/classes/WsClient.html +53 -0
- package/dist/docs/enums/AccountRole.html +40 -0
- package/dist/docs/enums/SynapseNetwork.html +5 -0
- package/dist/docs/enums/SynapseRegion.html +4 -0
- package/dist/docs/functions/Epoch-1.html +5 -0
- package/dist/docs/functions/Lamports-2.html +5 -0
- package/dist/docs/functions/Pubkey-1.html +5 -0
- package/dist/docs/functions/Sig.html +5 -0
- package/dist/docs/functions/Slot-1.html +5 -0
- package/dist/docs/functions/UnixTs.html +5 -0
- package/dist/docs/functions/addSignersToTransactionMessage.html +14 -0
- package/dist/docs/functions/address-1.html +15 -0
- package/dist/docs/functions/airdropFactory.html +9 -0
- package/dist/docs/functions/appendTransactionMessageInstruction.html +8 -0
- package/dist/docs/functions/appendTransactionMessageInstructions.html +8 -0
- package/dist/docs/functions/assertAccountDecoded.html +13 -0
- package/dist/docs/functions/assertAccountExists.html +10 -0
- package/dist/docs/functions/assertIsAddress.html +7 -0
- package/dist/docs/functions/assertIsKeyPairSigner.html +6 -0
- package/dist/docs/functions/assertIsKitSignature.html +7 -0
- package/dist/docs/functions/assertIsTransactionSigner.html +7 -0
- package/dist/docs/functions/autoSelectRegion.html +6 -0
- package/dist/docs/functions/base58Encode.html +4 -0
- package/dist/docs/functions/blockhash.html +15 -0
- package/dist/docs/functions/chunk.html +11 -0
- package/dist/docs/functions/commitmentComparator.html +1 -0
- package/dist/docs/functions/compileTransaction.html +14 -0
- package/dist/docs/functions/compileTransactionMessage.html +8 -0
- package/dist/docs/functions/computeBalanceChanges.html +3 -0
- package/dist/docs/functions/computeTokenBalanceChanges.html +3 -0
- package/dist/docs/functions/createAddressWithSeed.html +6 -0
- package/dist/docs/functions/createDefaultRpcSubscriptionsTransport.html +7 -0
- package/dist/docs/functions/createDefaultRpcTransport.html +10 -0
- package/dist/docs/functions/createDefaultSolanaRpcSubscriptionsChannelCreator.html +5 -0
- package/dist/docs/functions/createKeyPairFromBytes.html +12 -0
- package/dist/docs/functions/createKeyPairFromPrivateKeyBytes.html +17 -0
- package/dist/docs/functions/createKeyPairSignerFromBytes.html +6 -0
- package/dist/docs/functions/createKeyPairSignerFromPrivateKeyBytes.html +6 -0
- package/dist/docs/functions/createNoopSigner.html +6 -0
- package/dist/docs/functions/createRpc.html +3 -0
- package/dist/docs/functions/createSignableMessage.html +6 -0
- package/dist/docs/functions/createSignerFromKeyPair.html +12 -0
- package/dist/docs/functions/createSolanaRpc.html +4 -0
- package/dist/docs/functions/createSolanaRpcApi.html +12 -0
- package/dist/docs/functions/createSolanaRpcFromTransport.html +3 -0
- package/dist/docs/functions/createSolanaRpcSubscriptions.html +4 -0
- package/dist/docs/functions/createSolanaRpcSubscriptionsApi.html +1 -0
- package/dist/docs/functions/createSolanaRpcSubscriptionsFromTransport.html +3 -0
- package/dist/docs/functions/createSolanaRpcSubscriptions_UNSTABLE.html +4 -0
- package/dist/docs/functions/createSynapse.html +8 -0
- package/dist/docs/functions/createTransactionMessage.html +6 -0
- package/dist/docs/functions/decodeAccount.html +9 -0
- package/dist/docs/functions/devnet.html +2 -0
- package/dist/docs/functions/fetchEncodedAccount.html +9 -0
- package/dist/docs/functions/fetchEncodedAccounts.html +11 -0
- package/dist/docs/functions/fetchJsonParsedAccount.html +12 -0
- package/dist/docs/functions/fetchJsonParsedAccounts.html +14 -0
- package/dist/docs/functions/fromKitAddress.html +5 -0
- package/dist/docs/functions/generateKeyPair.html +6 -0
- package/dist/docs/functions/generateKeyPairSigner.html +7 -0
- package/dist/docs/functions/getAccountInfo.html +11 -0
- package/dist/docs/functions/getAddressCodec.html +6 -0
- package/dist/docs/functions/getAddressComparator.html +1 -0
- package/dist/docs/functions/getAddressDecoder.html +6 -0
- package/dist/docs/functions/getAddressEncoder.html +5 -0
- package/dist/docs/functions/getAddressFromPublicKey.html +5 -0
- package/dist/docs/functions/getAsset.html +10 -0
- package/dist/docs/functions/getAssetBatch.html +10 -0
- package/dist/docs/functions/getAssetProof.html +10 -0
- package/dist/docs/functions/getAssetProofBatch.html +10 -0
- package/dist/docs/functions/getAssetsByAuthority.html +10 -0
- package/dist/docs/functions/getAssetsByCreator.html +10 -0
- package/dist/docs/functions/getAssetsByGroup.html +10 -0
- package/dist/docs/functions/getAssetsByOwner.html +10 -0
- package/dist/docs/functions/getBalance.html +11 -0
- package/dist/docs/functions/getBase58Codec.html +26 -0
- package/dist/docs/functions/getBase58Decoder.html +10 -0
- package/dist/docs/functions/getBase58Encoder.html +11 -0
- package/dist/docs/functions/getBase64Codec.html +26 -0
- package/dist/docs/functions/getBase64Decoder.html +10 -0
- package/dist/docs/functions/getBase64Encoder.html +11 -0
- package/dist/docs/functions/getBlock.html +10 -0
- package/dist/docs/functions/getBlockCommitment.html +10 -0
- package/dist/docs/functions/getBlockHeight.html +10 -0
- package/dist/docs/functions/getBlockProduction.html +9 -0
- package/dist/docs/functions/getBlockTime.html +10 -0
- package/dist/docs/functions/getBlocks.html +12 -0
- package/dist/docs/functions/getBlocksWithLimit.html +12 -0
- package/dist/docs/functions/getClusterNodes.html +9 -0
- package/dist/docs/functions/getEnvironment.html +12 -0
- package/dist/docs/functions/getEpochInfo.html +10 -0
- package/dist/docs/functions/getEpochSchedule.html +9 -0
- package/dist/docs/functions/getFeeForMessage.html +11 -0
- package/dist/docs/functions/getFirstAvailableBlock.html +9 -0
- package/dist/docs/functions/getGenesisHash.html +9 -0
- package/dist/docs/functions/getHealth.html +9 -0
- package/dist/docs/functions/getHighestSnapshotSlot.html +9 -0
- package/dist/docs/functions/getIdentity.html +9 -0
- package/dist/docs/functions/getInflationGovernor.html +10 -0
- package/dist/docs/functions/getInflationRate.html +9 -0
- package/dist/docs/functions/getInflationReward.html +10 -0
- package/dist/docs/functions/getLargestAccounts.html +9 -0
- package/dist/docs/functions/getLatestBlockhash.html +10 -0
- package/dist/docs/functions/getLeaderSchedule.html +10 -0
- package/dist/docs/functions/getMaxRetransmitSlot.html +9 -0
- package/dist/docs/functions/getMaxShredInsertSlot.html +9 -0
- package/dist/docs/functions/getMinimumBalanceForRentExemption.html +12 -0
- package/dist/docs/functions/getMultipleAccounts.html +10 -0
- package/dist/docs/functions/getProgramAccounts.html +11 -0
- package/dist/docs/functions/getProgramCategory.html +4 -0
- package/dist/docs/functions/getProgramDerivedAddress.html +6 -0
- package/dist/docs/functions/getRecentPerformanceSamples.html +10 -0
- package/dist/docs/functions/getRecentPrioritizationFees.html +10 -0
- package/dist/docs/functions/getSignatureStatuses.html +10 -0
- package/dist/docs/functions/getSignaturesForAddress.html +12 -0
- package/dist/docs/functions/getSignaturesForAsset.html +10 -0
- package/dist/docs/functions/getSlot.html +10 -0
- package/dist/docs/functions/getSlotLeader.html +10 -0
- package/dist/docs/functions/getSlotLeaders.html +11 -0
- package/dist/docs/functions/getStakeActivation.html +11 -0
- package/dist/docs/functions/getStakeMinimumDelegation.html +10 -0
- package/dist/docs/functions/getSupply.html +9 -0
- package/dist/docs/functions/getTokenAccountBalance.html +11 -0
- package/dist/docs/functions/getTokenAccounts.html +10 -0
- package/dist/docs/functions/getTokenAccountsByDelegate.html +11 -0
- package/dist/docs/functions/getTokenAccountsByOwner.html +11 -0
- package/dist/docs/functions/getTokenLargestAccounts.html +11 -0
- package/dist/docs/functions/getTokenSupply.html +11 -0
- package/dist/docs/functions/getTransaction.html +10 -0
- package/dist/docs/functions/getTransactionCount.html +10 -0
- package/dist/docs/functions/getVersion.html +9 -0
- package/dist/docs/functions/getVoteAccounts.html +9 -0
- package/dist/docs/functions/isAddress.html +6 -0
- package/dist/docs/functions/isBlockhashValid.html +11 -0
- package/dist/docs/functions/isBrowser.html +3 -0
- package/dist/docs/functions/isKeyPairSigner.html +6 -0
- package/dist/docs/functions/isKitSignature.html +6 -0
- package/dist/docs/functions/isProgramInCategory.html +6 -0
- package/dist/docs/functions/isServer.html +3 -0
- package/dist/docs/functions/isTransactionSigner.html +7 -0
- package/dist/docs/functions/isValidPubkey.html +6 -0
- package/dist/docs/functions/isValidSignature.html +5 -0
- package/dist/docs/functions/kitSignature.html +6 -0
- package/dist/docs/functions/kitUnixTimestamp.html +6 -0
- package/dist/docs/functions/lamports-1.html +6 -0
- package/dist/docs/functions/lamportsToSol.html +8 -0
- package/dist/docs/functions/listEndpoints.html +2 -0
- package/dist/docs/functions/listNetworks.html +2 -0
- package/dist/docs/functions/listRegions.html +2 -0
- package/dist/docs/functions/mainnet.html +2 -0
- package/dist/docs/functions/minimumLedgerSlot.html +9 -0
- package/dist/docs/functions/parseAccountUpdate.html +3 -0
- package/dist/docs/functions/parseBase58RpcAccount.html +7 -0
- package/dist/docs/functions/parseBase64RpcAccount.html +7 -0
- package/dist/docs/functions/parseBlockMeta.html +3 -0
- package/dist/docs/functions/parseEntry.html +3 -0
- package/dist/docs/functions/parseGeyserUpdate.html +12 -0
- package/dist/docs/functions/parseJsonRpcAccount.html +9 -0
- package/dist/docs/functions/parseSlotUpdate.html +3 -0
- package/dist/docs/functions/parseTimestamp.html +3 -0
- package/dist/docs/functions/parseTransaction.html +3 -0
- package/dist/docs/functions/partiallySignTransaction.html +12 -0
- package/dist/docs/functions/partiallySignTransactionMessageWithSigners.html +22 -0
- package/dist/docs/functions/pipe.html +95 -0
- package/dist/docs/functions/prependTransactionMessageInstruction.html +8 -0
- package/dist/docs/functions/prependTransactionMessageInstructions.html +8 -0
- package/dist/docs/functions/probeLatency.html +3 -0
- package/dist/docs/functions/rawBufferToBase58.html +3 -0
- package/dist/docs/functions/rawBufferToBase64.html +3 -0
- package/dist/docs/functions/rawBufferToBytes.html +4 -0
- package/dist/docs/functions/rawBufferToHex.html +3 -0
- package/dist/docs/functions/requestAirdrop.html +13 -0
- package/dist/docs/functions/resolveEndpoint.html +3 -0
- package/dist/docs/functions/resolveProgram.html +9 -0
- package/dist/docs/functions/resolveProgramBatch.html +6 -0
- package/dist/docs/functions/retry.html +12 -0
- package/dist/docs/functions/searchAssets.html +10 -0
- package/dist/docs/functions/sendAndConfirmDurableNonceTransactionFactory.html +6 -0
- package/dist/docs/functions/sendAndConfirmTransactionFactory.html +6 -0
- package/dist/docs/functions/sendTransaction.html +10 -0
- package/dist/docs/functions/sendTransactionWithoutConfirmingFactory.html +6 -0
- package/dist/docs/functions/setTransactionMessageFeePayer.html +7 -0
- package/dist/docs/functions/setTransactionMessageFeePayerSigner.html +8 -0
- package/dist/docs/functions/setTransactionMessageLifetimeUsingBlockhash.html +7 -0
- package/dist/docs/functions/setTransactionMessageLifetimeUsingDurableNonce.html +9 -0
- package/dist/docs/functions/signAndSendTransactionMessageWithSigners.html +32 -0
- package/dist/docs/functions/signBytes.html +7 -0
- package/dist/docs/functions/signTransaction.html +10 -0
- package/dist/docs/functions/signTransactionMessageWithSigners.html +13 -0
- package/dist/docs/functions/simulateTransaction.html +10 -0
- package/dist/docs/functions/sleep.html +5 -0
- package/dist/docs/functions/solToLamports.html +8 -0
- package/dist/docs/functions/testnet.html +2 -0
- package/dist/docs/functions/toClientConfig.html +3 -0
- package/dist/docs/functions/toKitAddress.html +8 -0
- package/dist/docs/functions/toKitLamports.html +6 -0
- package/dist/docs/functions/toKitSignatureString.html +5 -0
- package/dist/docs/functions/verifySignature.html +8 -0
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/index.html +389 -531
- package/dist/docs/interfaces/AccountInfo.html +12 -4
- package/dist/docs/interfaces/AccountNotification.html +5 -0
- package/dist/docs/interfaces/AccountSubParams.html +5 -0
- package/dist/docs/interfaces/AssetSignatureInfo.html +6 -0
- package/dist/docs/interfaces/AssetSignaturesPage.html +7 -0
- package/dist/docs/interfaces/BalanceChange.html +13 -0
- package/dist/docs/interfaces/BlockProduction.html +7 -0
- package/dist/docs/interfaces/BlockResult.html +11 -0
- package/dist/docs/interfaces/BlockReward.html +8 -0
- package/dist/docs/interfaces/BlockhashResult.html +5 -0
- package/dist/docs/interfaces/CallOptions.html +13 -0
- package/dist/docs/interfaces/ConfirmedTransaction.html +10 -3
- package/dist/docs/interfaces/ContactInfo.html +10 -0
- package/dist/docs/interfaces/DasAsset.html +19 -0
- package/dist/docs/interfaces/DasAssetProof.html +9 -0
- package/dist/docs/interfaces/DasAuthority.html +6 -0
- package/dist/docs/interfaces/DasCompression.html +13 -0
- package/dist/docs/interfaces/DasContent.html +10 -0
- package/dist/docs/interfaces/DasCreator.html +7 -0
- package/dist/docs/interfaces/DasFile.html +8 -0
- package/dist/docs/interfaces/DasGrouping.html +8 -0
- package/dist/docs/interfaces/DasOpts.html +5 -0
- package/dist/docs/interfaces/DasOwnership.html +9 -0
- package/dist/docs/interfaces/DasPage.html +11 -0
- package/dist/docs/interfaces/DasRoyalty.html +10 -0
- package/dist/docs/interfaces/DasSearchParams.html +34 -0
- package/dist/docs/interfaces/DasSupply.html +7 -0
- package/dist/docs/interfaces/DataSlice.html +7 -0
- package/dist/docs/interfaces/EndpointConnectConfig.html +12 -0
- package/dist/docs/interfaces/EpochInfo.html +10 -4
- package/dist/docs/interfaces/EpochSchedule.html +8 -0
- package/dist/docs/interfaces/GetAccountInfoOpts.html +16 -0
- package/dist/docs/interfaces/GetAssetsByAuthorityParams.html +10 -0
- package/dist/docs/interfaces/GetAssetsByCreatorParams.html +13 -0
- package/dist/docs/interfaces/GetAssetsByGroupParams.html +14 -0
- package/dist/docs/interfaces/GetAssetsByOwnerParams.html +16 -0
- package/dist/docs/interfaces/GetBlockOpts.html +17 -0
- package/dist/docs/interfaces/GetBlockProductionOpts.html +15 -0
- package/dist/docs/interfaces/GetMultipleAccountsOpts.html +16 -0
- package/dist/docs/interfaces/GetProgramAccountsOpts.html +18 -0
- package/dist/docs/interfaces/GetSignatureStatusesOpts.html +14 -0
- package/dist/docs/interfaces/GetSignaturesOpts.html +17 -0
- package/dist/docs/interfaces/GetTokenAccountsParams.html +9 -0
- package/dist/docs/interfaces/GetTransactionOpts.html +15 -0
- package/dist/docs/interfaces/GeyserParserConfig.html +29 -0
- package/dist/docs/interfaces/GeyserParserEvents.html +19 -0
- package/dist/docs/interfaces/GeyserParserStats.html +8 -0
- package/dist/docs/interfaces/GrpcCallOptions.html +5 -0
- package/dist/docs/interfaces/GrpcTransportConfig.html +17 -0
- package/dist/docs/interfaces/InflationGovernor.html +8 -0
- package/dist/docs/interfaces/InflationRate.html +7 -0
- package/dist/docs/interfaces/InflationReward.html +8 -0
- package/dist/docs/interfaces/LatencyProbeResult.html +7 -0
- package/dist/docs/interfaces/LogsNotification.html +5 -0
- package/dist/docs/interfaces/LogsSubParams.html +4 -0
- package/dist/docs/interfaces/PaginationOpts.html +7 -0
- package/dist/docs/interfaces/ParsedAccountUpdate.html +33 -0
- package/dist/docs/interfaces/ParsedBlockMeta.html +11 -0
- package/dist/docs/interfaces/ParsedEntry.html +10 -0
- package/dist/docs/interfaces/ParsedInstruction.html +19 -0
- package/dist/docs/interfaces/ParsedSlotUpdate.html +8 -0
- package/dist/docs/interfaces/ParsedTransaction.html +39 -0
- package/dist/docs/interfaces/PerfSample.html +8 -0
- package/dist/docs/interfaces/ProgramAccount.html +5 -0
- package/dist/docs/interfaces/ProgramNotification.html +5 -0
- package/dist/docs/interfaces/ProgramSubParams.html +6 -0
- package/dist/docs/interfaces/RawAccountInfo.html +11 -0
- package/dist/docs/interfaces/RawBlockMeta.html +11 -0
- package/dist/docs/interfaces/RawBuffer.html +5 -0
- package/dist/docs/interfaces/RawCompiledInstruction.html +6 -0
- package/dist/docs/interfaces/RawEntry.html +9 -0
- package/dist/docs/interfaces/RawGeyserUpdate.html +13 -0
- package/dist/docs/interfaces/RawInnerInstruction.html +5 -0
- package/dist/docs/interfaces/RawSlotInfo.html +6 -0
- package/dist/docs/interfaces/RawTimestamp.html +5 -0
- package/dist/docs/interfaces/RawTokenBalance.html +8 -0
- package/dist/docs/interfaces/RawTransactionInfo.html +8 -0
- package/dist/docs/interfaces/RootNotification.html +4 -0
- package/dist/docs/interfaces/RootSubParams.html +3 -0
- package/dist/docs/interfaces/RpcContext.html +6 -0
- package/dist/docs/interfaces/RpcError.html +7 -3
- package/dist/docs/interfaces/RpcRequest.html +4 -3
- package/dist/docs/interfaces/RpcResponse.html +5 -3
- package/dist/docs/interfaces/SendTransactionOpts.html +17 -0
- package/dist/docs/interfaces/SignatureInfo.html +11 -4
- package/dist/docs/interfaces/SignatureNotification.html +5 -0
- package/dist/docs/interfaces/SignatureStatus.html +11 -0
- package/dist/docs/interfaces/SignatureSubParams.html +5 -0
- package/dist/docs/interfaces/SignaturesForAssetParams.html +10 -0
- package/dist/docs/interfaces/SimulateResult.html +11 -0
- package/dist/docs/interfaces/SimulateTransactionOpts.html +19 -0
- package/dist/docs/interfaces/SlotNotification.html +6 -0
- package/dist/docs/interfaces/SlotSubParams.html +3 -0
- package/dist/docs/interfaces/SortOpts.html +5 -0
- package/dist/docs/interfaces/Supply.html +11 -0
- package/dist/docs/interfaces/SynapseClientConfig.html +20 -0
- package/dist/docs/interfaces/SynapseEndpoint.html +14 -0
- package/dist/docs/interfaces/TokenAccount.html +6 -6
- package/dist/docs/interfaces/TokenAccountsByOwnerResult.html +7 -0
- package/dist/docs/interfaces/TokenAmount.html +11 -0
- package/dist/docs/interfaces/TokenBalanceChange.html +12 -0
- package/dist/docs/interfaces/TransactionMessageWithBlockhashLifetime.html +12 -0
- package/dist/docs/interfaces/TransactionMeta.html +23 -0
- package/dist/docs/interfaces/TransportConfig.html +15 -0
- package/dist/docs/interfaces/VoteAccount.html +19 -0
- package/dist/docs/interfaces/VoteAccountsResult.html +7 -0
- package/dist/docs/interfaces/WsConfig.html +13 -0
- package/dist/docs/media/CHANGELOG.md +89 -0
- package/dist/docs/media/CONTRIBUTING.md +110 -0
- package/dist/docs/modules.html +372 -155
- package/dist/docs/types/AccountFilter.html +3 -0
- package/dist/docs/types/Address.html +5 -0
- package/dist/docs/types/Base58.html +3 -0
- package/dist/docs/types/Brand.html +7 -0
- package/dist/docs/types/Commitment.html +8 -3
- package/dist/docs/types/DasSortBy.html +3 -0
- package/dist/docs/types/DasSortDirection.html +3 -0
- package/dist/docs/types/DataSizeFilter.html +3 -0
- package/dist/docs/types/Encoding.html +3 -0
- package/dist/docs/types/Epoch.html +3 -0
- package/dist/docs/types/KeyPairSigner.html +17 -0
- package/dist/docs/types/KitCommitment.html +4 -0
- package/dist/docs/types/Lamports.html +4 -0
- package/dist/docs/types/LogsFilter.html +3 -0
- package/dist/docs/types/MemcmpFilter.html +3 -0
- package/dist/docs/types/MessagePartialSigner.html +23 -0
- package/dist/docs/types/MessageSigner.html +8 -0
- package/dist/docs/types/NoopSigner.html +18 -0
- package/dist/docs/types/ParsedGeyserUpdate.html +4 -0
- package/dist/docs/types/Pubkey.html +4 -0
- package/dist/docs/types/Rpc.html +4 -0
- package/dist/docs/types/RpcSubscriptions.html +5 -0
- package/dist/docs/types/RpcTransport.html +3 -0
- package/dist/docs/types/RuntimeEnv.html +2 -0
- package/dist/docs/types/Signature.html +4 -0
- package/dist/docs/types/SignatureBytes.html +5 -0
- package/dist/docs/types/Slot.html +3 -0
- package/dist/docs/types/SolanaRpcApi.html +3 -0
- package/dist/docs/types/SolanaRpcApiDevnet.html +3 -0
- package/dist/docs/types/SolanaRpcApiMainnet.html +4 -0
- package/dist/docs/types/SolanaRpcApiTestnet.html +3 -0
- package/dist/docs/types/SolanaRpcSubscriptionsApi.html +1 -0
- package/dist/docs/types/SubscriptionId.html +3 -0
- package/dist/docs/types/TransactionDetail.html +3 -0
- package/dist/docs/types/TransactionMessage.html +1 -0
- package/dist/docs/types/TransactionModifyingSigner.html +30 -0
- package/dist/docs/types/TransactionPartialSigner.html +22 -0
- package/dist/docs/types/TransactionSendingSigner.html +33 -0
- package/dist/docs/types/TransactionSigner.html +9 -0
- package/dist/docs/types/UnaryMethod.html +5 -0
- package/dist/docs/types/UnixTimestamp.html +3 -0
- package/dist/docs/types/WsNotification.html +3 -0
- package/dist/docs/variables/DEFAULT_RPC_CONFIG.html +6 -0
- package/dist/docs/variables/DEFAULT_RPC_SUBSCRIPTIONS_CONFIG.html +1 -0
- package/dist/docs/variables/JUPITER_PROGRAMS.html +1 -0
- package/dist/docs/variables/KNOWN_PROGRAMS.html +3 -0
- package/dist/docs/variables/KNOWN_PROGRAMS_COUNT.html +3 -0
- package/dist/docs/variables/MARINADE_PROGRAMS.html +1 -0
- package/dist/docs/variables/METAPLEX_PROGRAMS.html +1 -0
- package/dist/docs/variables/METEORA_PROGRAMS.html +1 -0
- package/dist/docs/variables/ORCA_PROGRAMS.html +1 -0
- package/dist/docs/variables/OTHER_PROGRAMS.html +1 -0
- package/dist/docs/variables/RAYDIUM_PROGRAMS.html +1 -0
- package/dist/docs/variables/SDK_USER_AGENT.html +6 -0
- package/dist/docs/variables/SPL_PROGRAMS.html +1 -0
- package/dist/docs/variables/SYNAPSE_DEVNET_EU.html +2 -0
- package/dist/docs/variables/SYNAPSE_DEVNET_US.html +2 -0
- package/dist/docs/variables/SYNAPSE_ENDPOINTS.html +2 -0
- package/dist/docs/variables/SYNAPSE_MAINNET_EU.html +2 -0
- package/dist/docs/variables/SYNAPSE_MAINNET_US.html +2 -0
- package/dist/docs/variables/SYSTEM_PROGRAMS.html +1 -0
- package/dist/esm/ai/gateway/index.d.ts +380 -0
- package/dist/esm/ai/gateway/index.d.ts.map +1 -0
- package/dist/esm/ai/gateway/index.js +744 -0
- package/dist/esm/ai/gateway/index.js.map +1 -0
- package/dist/esm/ai/gateway/marketplace.d.ts +202 -0
- package/dist/esm/ai/gateway/marketplace.d.ts.map +1 -0
- package/dist/esm/ai/gateway/marketplace.js +348 -0
- package/dist/esm/ai/gateway/marketplace.js.map +1 -0
- package/dist/esm/ai/gateway/pricing.d.ts +149 -0
- package/dist/esm/ai/gateway/pricing.d.ts.map +1 -0
- package/dist/esm/ai/gateway/pricing.js +252 -0
- package/dist/esm/ai/gateway/pricing.js.map +1 -0
- package/dist/esm/ai/gateway/session.d.ts +191 -0
- package/dist/esm/ai/gateway/session.d.ts.map +1 -0
- package/dist/esm/ai/gateway/session.js +343 -0
- package/dist/esm/ai/gateway/session.js.map +1 -0
- package/dist/esm/ai/gateway/types.d.ts +324 -0
- package/dist/esm/ai/gateway/types.d.ts.map +1 -0
- package/dist/esm/ai/gateway/types.js +18 -0
- package/dist/esm/ai/gateway/types.js.map +1 -0
- package/dist/esm/ai/gateway/validator.d.ts +128 -0
- package/dist/esm/ai/gateway/validator.d.ts.map +1 -0
- package/dist/esm/ai/gateway/validator.js +204 -0
- package/dist/esm/ai/gateway/validator.js.map +1 -0
- package/dist/esm/ai/gateway/x402/client.d.ts +274 -0
- package/dist/esm/ai/gateway/x402/client.d.ts.map +1 -0
- package/dist/esm/ai/gateway/x402/client.js +460 -0
- package/dist/esm/ai/gateway/x402/client.js.map +1 -0
- package/dist/esm/ai/gateway/x402/facilitator.d.ts +169 -0
- package/dist/esm/ai/gateway/x402/facilitator.d.ts.map +1 -0
- package/dist/esm/ai/gateway/x402/facilitator.js +284 -0
- package/dist/esm/ai/gateway/x402/facilitator.js.map +1 -0
- package/dist/esm/ai/gateway/x402/index.d.ts +81 -0
- package/dist/esm/ai/gateway/x402/index.d.ts.map +1 -0
- package/dist/esm/ai/gateway/x402/index.js +91 -0
- package/dist/esm/ai/gateway/x402/index.js.map +1 -0
- package/dist/esm/ai/gateway/x402/paywall.d.ts +148 -0
- package/dist/esm/ai/gateway/x402/paywall.d.ts.map +1 -0
- package/dist/esm/ai/gateway/x402/paywall.js +263 -0
- package/dist/esm/ai/gateway/x402/paywall.js.map +1 -0
- package/dist/esm/ai/gateway/x402/registry.d.ts +86 -0
- package/dist/esm/ai/gateway/x402/registry.d.ts.map +1 -0
- package/dist/esm/ai/gateway/x402/registry.js +286 -0
- package/dist/esm/ai/gateway/x402/registry.js.map +1 -0
- package/dist/esm/ai/gateway/x402/types.d.ts +407 -0
- package/dist/esm/ai/gateway/x402/types.d.ts.map +1 -0
- package/dist/esm/ai/gateway/x402/types.js +138 -0
- package/dist/esm/ai/gateway/x402/types.js.map +1 -0
- package/dist/esm/ai/index.d.ts +15 -11
- package/dist/esm/ai/index.d.ts.map +1 -1
- package/dist/esm/ai/index.js +33 -10
- package/dist/esm/ai/index.js.map +1 -1
- package/dist/esm/ai/tools/index.d.ts +83 -0
- package/dist/esm/ai/tools/index.d.ts.map +1 -0
- package/dist/esm/ai/tools/index.js +328 -0
- package/dist/esm/ai/tools/index.js.map +1 -0
- package/dist/esm/ai/tools/protocols/index.d.ts +87 -0
- package/dist/esm/ai/tools/protocols/index.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/index.js +89 -0
- package/dist/esm/ai/tools/protocols/index.js.map +1 -0
- package/dist/esm/ai/tools/protocols/jupiter/index.d.ts +8 -0
- package/dist/esm/ai/tools/protocols/jupiter/index.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/jupiter/index.js +8 -0
- package/dist/esm/ai/tools/protocols/jupiter/index.js.map +1 -0
- package/dist/esm/ai/tools/protocols/jupiter/schemas.d.ts +11 -0
- package/dist/esm/ai/tools/protocols/jupiter/schemas.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/jupiter/schemas.js +383 -0
- package/dist/esm/ai/tools/protocols/jupiter/schemas.js.map +1 -0
- package/dist/esm/ai/tools/protocols/jupiter/tools.d.ts +55 -0
- package/dist/esm/ai/tools/protocols/jupiter/tools.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/jupiter/tools.js +80 -0
- package/dist/esm/ai/tools/protocols/jupiter/tools.js.map +1 -0
- package/dist/esm/ai/tools/protocols/metaplex/index.d.ts +8 -0
- package/dist/esm/ai/tools/protocols/metaplex/index.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/metaplex/index.js +8 -0
- package/dist/esm/ai/tools/protocols/metaplex/index.js.map +1 -0
- package/dist/esm/ai/tools/protocols/metaplex/schemas.d.ts +11 -0
- package/dist/esm/ai/tools/protocols/metaplex/schemas.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/metaplex/schemas.js +244 -0
- package/dist/esm/ai/tools/protocols/metaplex/schemas.js.map +1 -0
- package/dist/esm/ai/tools/protocols/metaplex/tools.d.ts +45 -0
- package/dist/esm/ai/tools/protocols/metaplex/tools.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/metaplex/tools.js +157 -0
- package/dist/esm/ai/tools/protocols/metaplex/tools.js.map +1 -0
- package/dist/esm/ai/tools/protocols/raydium/index.d.ts +8 -0
- package/dist/esm/ai/tools/protocols/raydium/index.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/raydium/index.js +8 -0
- package/dist/esm/ai/tools/protocols/raydium/index.js.map +1 -0
- package/dist/esm/ai/tools/protocols/raydium/schemas.d.ts +11 -0
- package/dist/esm/ai/tools/protocols/raydium/schemas.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/raydium/schemas.js +199 -0
- package/dist/esm/ai/tools/protocols/raydium/schemas.js.map +1 -0
- package/dist/esm/ai/tools/protocols/raydium/tools.d.ts +50 -0
- package/dist/esm/ai/tools/protocols/raydium/tools.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/raydium/tools.js +78 -0
- package/dist/esm/ai/tools/protocols/raydium/tools.js.map +1 -0
- package/dist/esm/ai/tools/protocols/shared.d.ts +143 -0
- package/dist/esm/ai/tools/protocols/shared.d.ts.map +1 -0
- package/dist/esm/ai/tools/protocols/shared.js +176 -0
- package/dist/esm/ai/tools/protocols/shared.js.map +1 -0
- package/dist/esm/ai/tools/zod/index.d.ts +35 -0
- package/dist/esm/ai/tools/zod/index.d.ts.map +1 -0
- package/dist/esm/ai/tools/zod/index.js +53 -0
- package/dist/esm/ai/tools/zod/index.js.map +1 -0
- package/dist/esm/ai/tools/zod/types.d.ts +25 -0
- package/dist/esm/ai/tools/zod/types.d.ts.map +1 -0
- package/dist/esm/ai/tools/zod/types.js +258 -0
- package/dist/esm/ai/tools/zod/types.js.map +1 -0
- package/dist/esm/core/client.d.ts +186 -0
- package/dist/esm/core/client.d.ts.map +1 -0
- package/dist/esm/core/client.js +246 -0
- package/dist/esm/core/client.js.map +1 -0
- package/dist/esm/core/errors.d.ts +81 -0
- package/dist/esm/core/errors.d.ts.map +1 -0
- package/dist/esm/core/errors.js +101 -0
- package/dist/esm/core/errors.js.map +1 -0
- package/dist/esm/core/transport.d.ts +106 -0
- package/dist/esm/core/transport.d.ts.map +1 -0
- package/dist/esm/core/transport.js +177 -0
- package/dist/esm/core/transport.js.map +1 -0
- package/dist/esm/core/types.d.ts +490 -0
- package/dist/esm/core/types.d.ts.map +1 -0
- package/dist/esm/core/types.js +68 -0
- package/dist/esm/core/types.js.map +1 -0
- package/dist/esm/das/client.d.ts +122 -0
- package/dist/esm/das/client.d.ts.map +1 -0
- package/dist/esm/das/client.js +136 -0
- package/dist/esm/das/client.js.map +1 -0
- package/dist/esm/das/index.d.ts +10 -0
- package/dist/esm/das/index.d.ts.map +1 -0
- package/dist/esm/das/index.js +10 -0
- package/dist/esm/das/index.js.map +1 -0
- package/dist/esm/das/methods/get-asset-batch.d.ts +26 -0
- package/dist/esm/das/methods/get-asset-batch.d.ts.map +1 -0
- package/dist/esm/das/methods/get-asset-batch.js +21 -0
- package/dist/esm/das/methods/get-asset-batch.js.map +1 -0
- package/dist/esm/das/methods/get-asset-proof-batch.d.ts +26 -0
- package/dist/esm/das/methods/get-asset-proof-batch.d.ts.map +1 -0
- package/dist/esm/das/methods/get-asset-proof-batch.js +21 -0
- package/dist/esm/das/methods/get-asset-proof-batch.js.map +1 -0
- package/dist/esm/das/methods/get-asset-proof.d.ts +26 -0
- package/dist/esm/das/methods/get-asset-proof.d.ts.map +1 -0
- package/dist/esm/das/methods/get-asset-proof.js +21 -0
- package/dist/esm/das/methods/get-asset-proof.js.map +1 -0
- package/dist/esm/das/methods/get-asset.d.ts +26 -0
- package/dist/esm/das/methods/get-asset.d.ts.map +1 -0
- package/dist/esm/das/methods/get-asset.js +21 -0
- package/dist/esm/das/methods/get-asset.js.map +1 -0
- package/dist/esm/das/methods/get-assets-by-authority.d.ts +45 -0
- package/dist/esm/das/methods/get-assets-by-authority.d.ts.map +1 -0
- package/dist/esm/das/methods/get-assets-by-authority.js +24 -0
- package/dist/esm/das/methods/get-assets-by-authority.js.map +1 -0
- package/dist/esm/das/methods/get-assets-by-creator.d.ts +48 -0
- package/dist/esm/das/methods/get-assets-by-creator.d.ts.map +1 -0
- package/dist/esm/das/methods/get-assets-by-creator.js +24 -0
- package/dist/esm/das/methods/get-assets-by-creator.js.map +1 -0
- package/dist/esm/das/methods/get-assets-by-group.d.ts +48 -0
- package/dist/esm/das/methods/get-assets-by-group.d.ts.map +1 -0
- package/dist/esm/das/methods/get-assets-by-group.js +24 -0
- package/dist/esm/das/methods/get-assets-by-group.js.map +1 -0
- package/dist/esm/das/methods/get-assets-by-owner.d.ts +52 -0
- package/dist/esm/das/methods/get-assets-by-owner.d.ts.map +1 -0
- package/dist/esm/das/methods/get-assets-by-owner.js +25 -0
- package/dist/esm/das/methods/get-assets-by-owner.js.map +1 -0
- package/dist/esm/das/methods/get-signatures-for-asset.d.ts +61 -0
- package/dist/esm/das/methods/get-signatures-for-asset.d.ts.map +1 -0
- package/dist/esm/das/methods/get-signatures-for-asset.js +24 -0
- package/dist/esm/das/methods/get-signatures-for-asset.js.map +1 -0
- package/dist/esm/das/methods/get-token-accounts.d.ts +58 -0
- package/dist/esm/das/methods/get-token-accounts.d.ts.map +1 -0
- package/dist/esm/das/methods/get-token-accounts.js +24 -0
- package/dist/esm/das/methods/get-token-accounts.js.map +1 -0
- package/dist/esm/das/methods/index.d.ts +17 -0
- package/dist/esm/das/methods/index.d.ts.map +1 -0
- package/dist/esm/das/methods/index.js +17 -0
- package/dist/esm/das/methods/index.js.map +1 -0
- package/dist/esm/das/methods/search-assets.d.ts +29 -0
- package/dist/esm/das/methods/search-assets.d.ts.map +1 -0
- package/dist/esm/das/methods/search-assets.js +25 -0
- package/dist/esm/das/methods/search-assets.js.map +1 -0
- package/dist/esm/das/types.d.ts +257 -0
- package/dist/esm/das/types.d.ts.map +1 -0
- package/dist/esm/das/types.js +2 -0
- package/dist/esm/das/types.js.map +1 -0
- package/dist/esm/grpc/index.d.ts +10 -0
- package/dist/esm/grpc/index.d.ts.map +1 -0
- package/dist/esm/grpc/index.js +10 -0
- package/dist/esm/grpc/index.js.map +1 -0
- package/dist/esm/grpc/parser/decoder.d.ts +117 -0
- package/dist/esm/grpc/parser/decoder.d.ts.map +1 -0
- package/dist/esm/grpc/parser/decoder.js +589 -0
- package/dist/esm/grpc/parser/decoder.js.map +1 -0
- package/dist/esm/grpc/parser/geyser-parser.d.ts +184 -0
- package/dist/esm/grpc/parser/geyser-parser.d.ts.map +1 -0
- package/dist/esm/grpc/parser/geyser-parser.js +275 -0
- package/dist/esm/grpc/parser/geyser-parser.js.map +1 -0
- package/dist/esm/grpc/parser/index.d.ts +12 -0
- package/dist/esm/grpc/parser/index.d.ts.map +1 -0
- package/dist/esm/grpc/parser/index.js +13 -0
- package/dist/esm/grpc/parser/index.js.map +1 -0
- package/dist/esm/grpc/parser/programs.d.ts +69 -0
- package/dist/esm/grpc/parser/programs.d.ts.map +1 -0
- package/dist/esm/grpc/parser/programs.js +261 -0
- package/dist/esm/grpc/parser/programs.js.map +1 -0
- package/dist/esm/grpc/parser/types.d.ts +344 -0
- package/dist/esm/grpc/parser/types.d.ts.map +1 -0
- package/dist/esm/grpc/parser/types.js +12 -0
- package/dist/esm/grpc/parser/types.js.map +1 -0
- package/dist/esm/grpc/transport.d.ts +96 -0
- package/dist/esm/grpc/transport.d.ts.map +1 -0
- package/dist/esm/grpc/transport.js +160 -0
- package/dist/esm/grpc/transport.js.map +1 -0
- package/dist/esm/grpc/types.d.ts +51 -0
- package/dist/esm/grpc/types.d.ts.map +1 -0
- package/dist/esm/grpc/types.js +8 -0
- package/dist/esm/grpc/types.js.map +1 -0
- package/dist/esm/index.d.ts +42 -27
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +52 -42
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/kit/index.d.ts +94 -0
- package/dist/esm/kit/index.d.ts.map +1 -0
- package/dist/esm/kit/index.js +100 -0
- package/dist/esm/kit/index.js.map +1 -0
- package/dist/esm/rpc/index.d.ts +9 -0
- package/dist/esm/rpc/index.d.ts.map +1 -0
- package/dist/esm/rpc/index.js +9 -0
- package/dist/esm/rpc/index.js.map +1 -0
- package/dist/esm/rpc/methods/get-account-info.d.ts +37 -0
- package/dist/esm/rpc/methods/get-account-info.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-account-info.js +31 -0
- package/dist/esm/rpc/methods/get-account-info.js.map +1 -0
- package/dist/esm/rpc/methods/get-balance.d.ts +28 -0
- package/dist/esm/rpc/methods/get-balance.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-balance.js +25 -0
- package/dist/esm/rpc/methods/get-balance.js.map +1 -0
- package/dist/esm/rpc/methods/get-block-commitment.d.ts +28 -0
- package/dist/esm/rpc/methods/get-block-commitment.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-block-commitment.js +20 -0
- package/dist/esm/rpc/methods/get-block-commitment.js.map +1 -0
- package/dist/esm/rpc/methods/get-block-height.d.ts +27 -0
- package/dist/esm/rpc/methods/get-block-height.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-block-height.js +24 -0
- package/dist/esm/rpc/methods/get-block-height.js.map +1 -0
- package/dist/esm/rpc/methods/get-block-production.d.ts +37 -0
- package/dist/esm/rpc/methods/get-block-production.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-block-production.js +27 -0
- package/dist/esm/rpc/methods/get-block-production.js.map +1 -0
- package/dist/esm/rpc/methods/get-block-time.d.ts +25 -0
- package/dist/esm/rpc/methods/get-block-time.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-block-time.js +20 -0
- package/dist/esm/rpc/methods/get-block-time.js.map +1 -0
- package/dist/esm/rpc/methods/get-block.d.ts +68 -0
- package/dist/esm/rpc/methods/get-block.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-block.js +32 -0
- package/dist/esm/rpc/methods/get-block.js.map +1 -0
- package/dist/esm/rpc/methods/get-blocks-with-limit.d.ts +27 -0
- package/dist/esm/rpc/methods/get-blocks-with-limit.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-blocks-with-limit.js +22 -0
- package/dist/esm/rpc/methods/get-blocks-with-limit.js.map +1 -0
- package/dist/esm/rpc/methods/get-blocks.d.ts +27 -0
- package/dist/esm/rpc/methods/get-blocks.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-blocks.js +25 -0
- package/dist/esm/rpc/methods/get-blocks.js.map +1 -0
- package/dist/esm/rpc/methods/get-cluster-nodes.d.ts +24 -0
- package/dist/esm/rpc/methods/get-cluster-nodes.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-cluster-nodes.js +19 -0
- package/dist/esm/rpc/methods/get-cluster-nodes.js.map +1 -0
- package/dist/esm/rpc/methods/get-epoch-info.d.ts +27 -0
- package/dist/esm/rpc/methods/get-epoch-info.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-epoch-info.js +24 -0
- package/dist/esm/rpc/methods/get-epoch-info.js.map +1 -0
- package/dist/esm/rpc/methods/get-epoch-schedule.d.ts +24 -0
- package/dist/esm/rpc/methods/get-epoch-schedule.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-epoch-schedule.js +19 -0
- package/dist/esm/rpc/methods/get-epoch-schedule.js.map +1 -0
- package/dist/esm/rpc/methods/get-fee-for-message.d.ts +28 -0
- package/dist/esm/rpc/methods/get-fee-for-message.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-fee-for-message.js +25 -0
- package/dist/esm/rpc/methods/get-fee-for-message.js.map +1 -0
- package/dist/esm/rpc/methods/get-first-available-block.d.ts +24 -0
- package/dist/esm/rpc/methods/get-first-available-block.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-first-available-block.js +19 -0
- package/dist/esm/rpc/methods/get-first-available-block.js.map +1 -0
- package/dist/esm/rpc/methods/get-genesis-hash.d.ts +23 -0
- package/dist/esm/rpc/methods/get-genesis-hash.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-genesis-hash.js +19 -0
- package/dist/esm/rpc/methods/get-genesis-hash.js.map +1 -0
- package/dist/esm/rpc/methods/get-health.d.ts +23 -0
- package/dist/esm/rpc/methods/get-health.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-health.js +19 -0
- package/dist/esm/rpc/methods/get-health.js.map +1 -0
- package/dist/esm/rpc/methods/get-highest-snapshot-slot.d.ts +27 -0
- package/dist/esm/rpc/methods/get-highest-snapshot-slot.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-highest-snapshot-slot.js +19 -0
- package/dist/esm/rpc/methods/get-highest-snapshot-slot.js.map +1 -0
- package/dist/esm/rpc/methods/get-identity.d.ts +26 -0
- package/dist/esm/rpc/methods/get-identity.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-identity.js +19 -0
- package/dist/esm/rpc/methods/get-identity.js.map +1 -0
- package/dist/esm/rpc/methods/get-inflation-governor.d.ts +25 -0
- package/dist/esm/rpc/methods/get-inflation-governor.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-inflation-governor.js +21 -0
- package/dist/esm/rpc/methods/get-inflation-governor.js.map +1 -0
- package/dist/esm/rpc/methods/get-inflation-rate.d.ts +24 -0
- package/dist/esm/rpc/methods/get-inflation-rate.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-inflation-rate.js +19 -0
- package/dist/esm/rpc/methods/get-inflation-rate.js.map +1 -0
- package/dist/esm/rpc/methods/get-inflation-reward.d.ts +29 -0
- package/dist/esm/rpc/methods/get-inflation-reward.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-inflation-reward.js +28 -0
- package/dist/esm/rpc/methods/get-inflation-reward.js.map +1 -0
- package/dist/esm/rpc/methods/get-largest-accounts.d.ts +30 -0
- package/dist/esm/rpc/methods/get-largest-accounts.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-largest-accounts.js +25 -0
- package/dist/esm/rpc/methods/get-largest-accounts.js.map +1 -0
- package/dist/esm/rpc/methods/get-latest-blockhash.d.ts +36 -0
- package/dist/esm/rpc/methods/get-latest-blockhash.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-latest-blockhash.js +24 -0
- package/dist/esm/rpc/methods/get-latest-blockhash.js.map +1 -0
- package/dist/esm/rpc/methods/get-leader-schedule.d.ts +27 -0
- package/dist/esm/rpc/methods/get-leader-schedule.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-leader-schedule.js +25 -0
- package/dist/esm/rpc/methods/get-leader-schedule.js.map +1 -0
- package/dist/esm/rpc/methods/get-max-retransmit-slot.d.ts +23 -0
- package/dist/esm/rpc/methods/get-max-retransmit-slot.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-max-retransmit-slot.js +18 -0
- package/dist/esm/rpc/methods/get-max-retransmit-slot.js.map +1 -0
- package/dist/esm/rpc/methods/get-max-shred-insert-slot.d.ts +23 -0
- package/dist/esm/rpc/methods/get-max-shred-insert-slot.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-max-shred-insert-slot.js +18 -0
- package/dist/esm/rpc/methods/get-max-shred-insert-slot.js.map +1 -0
- package/dist/esm/rpc/methods/get-minimum-balance-for-rent-exemption.d.ts +26 -0
- package/dist/esm/rpc/methods/get-minimum-balance-for-rent-exemption.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-minimum-balance-for-rent-exemption.js +21 -0
- package/dist/esm/rpc/methods/get-minimum-balance-for-rent-exemption.js.map +1 -0
- package/dist/esm/rpc/methods/get-multiple-accounts.d.ts +35 -0
- package/dist/esm/rpc/methods/get-multiple-accounts.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-multiple-accounts.js +29 -0
- package/dist/esm/rpc/methods/get-multiple-accounts.js.map +1 -0
- package/dist/esm/rpc/methods/get-program-accounts.d.ts +51 -0
- package/dist/esm/rpc/methods/get-program-accounts.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-program-accounts.js +38 -0
- package/dist/esm/rpc/methods/get-program-accounts.js.map +1 -0
- package/dist/esm/rpc/methods/get-recent-performance-samples.d.ts +24 -0
- package/dist/esm/rpc/methods/get-recent-performance-samples.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-recent-performance-samples.js +19 -0
- package/dist/esm/rpc/methods/get-recent-performance-samples.js.map +1 -0
- package/dist/esm/rpc/methods/get-recent-prioritization-fees.d.ts +27 -0
- package/dist/esm/rpc/methods/get-recent-prioritization-fees.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-recent-prioritization-fees.js +19 -0
- package/dist/esm/rpc/methods/get-recent-prioritization-fees.js.map +1 -0
- package/dist/esm/rpc/methods/get-signature-statuses.d.ts +32 -0
- package/dist/esm/rpc/methods/get-signature-statuses.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-signature-statuses.js +23 -0
- package/dist/esm/rpc/methods/get-signature-statuses.js.map +1 -0
- package/dist/esm/rpc/methods/get-signatures-for-address.d.ts +40 -0
- package/dist/esm/rpc/methods/get-signatures-for-address.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-signatures-for-address.js +49 -0
- package/dist/esm/rpc/methods/get-signatures-for-address.js.map +1 -0
- package/dist/esm/rpc/methods/get-slot-leader.d.ts +26 -0
- package/dist/esm/rpc/methods/get-slot-leader.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-slot-leader.js +23 -0
- package/dist/esm/rpc/methods/get-slot-leader.js.map +1 -0
- package/dist/esm/rpc/methods/get-slot-leaders.d.ts +25 -0
- package/dist/esm/rpc/methods/get-slot-leaders.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-slot-leaders.js +20 -0
- package/dist/esm/rpc/methods/get-slot-leaders.js.map +1 -0
- package/dist/esm/rpc/methods/get-slot.d.ts +26 -0
- package/dist/esm/rpc/methods/get-slot.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-slot.js +23 -0
- package/dist/esm/rpc/methods/get-slot.js.map +1 -0
- package/dist/esm/rpc/methods/get-stake-activation.d.ts +37 -0
- package/dist/esm/rpc/methods/get-stake-activation.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-stake-activation.js +30 -0
- package/dist/esm/rpc/methods/get-stake-activation.js.map +1 -0
- package/dist/esm/rpc/methods/get-stake-minimum-delegation.d.ts +24 -0
- package/dist/esm/rpc/methods/get-stake-minimum-delegation.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-stake-minimum-delegation.js +19 -0
- package/dist/esm/rpc/methods/get-stake-minimum-delegation.js.map +1 -0
- package/dist/esm/rpc/methods/get-supply.d.ts +27 -0
- package/dist/esm/rpc/methods/get-supply.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-supply.js +25 -0
- package/dist/esm/rpc/methods/get-supply.js.map +1 -0
- package/dist/esm/rpc/methods/get-token-account-balance.d.ts +26 -0
- package/dist/esm/rpc/methods/get-token-account-balance.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-token-account-balance.js +21 -0
- package/dist/esm/rpc/methods/get-token-account-balance.js.map +1 -0
- package/dist/esm/rpc/methods/get-token-accounts-by-delegate.d.ts +33 -0
- package/dist/esm/rpc/methods/get-token-accounts-by-delegate.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-token-accounts-by-delegate.js +26 -0
- package/dist/esm/rpc/methods/get-token-accounts-by-delegate.js.map +1 -0
- package/dist/esm/rpc/methods/get-token-accounts-by-owner.d.ts +33 -0
- package/dist/esm/rpc/methods/get-token-accounts-by-owner.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-token-accounts-by-owner.js +26 -0
- package/dist/esm/rpc/methods/get-token-accounts-by-owner.js.map +1 -0
- package/dist/esm/rpc/methods/get-token-largest-accounts.d.ts +31 -0
- package/dist/esm/rpc/methods/get-token-largest-accounts.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-token-largest-accounts.js +20 -0
- package/dist/esm/rpc/methods/get-token-largest-accounts.js.map +1 -0
- package/dist/esm/rpc/methods/get-token-supply.d.ts +26 -0
- package/dist/esm/rpc/methods/get-token-supply.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-token-supply.js +21 -0
- package/dist/esm/rpc/methods/get-token-supply.js.map +1 -0
- package/dist/esm/rpc/methods/get-transaction-count.d.ts +26 -0
- package/dist/esm/rpc/methods/get-transaction-count.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-transaction-count.js +23 -0
- package/dist/esm/rpc/methods/get-transaction-count.js.map +1 -0
- package/dist/esm/rpc/methods/get-transaction.d.ts +36 -0
- package/dist/esm/rpc/methods/get-transaction.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-transaction.js +29 -0
- package/dist/esm/rpc/methods/get-transaction.js.map +1 -0
- package/dist/esm/rpc/methods/get-version.d.ts +26 -0
- package/dist/esm/rpc/methods/get-version.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-version.js +19 -0
- package/dist/esm/rpc/methods/get-version.js.map +1 -0
- package/dist/esm/rpc/methods/get-vote-accounts.d.ts +29 -0
- package/dist/esm/rpc/methods/get-vote-accounts.d.ts.map +1 -0
- package/dist/esm/rpc/methods/get-vote-accounts.js +29 -0
- package/dist/esm/rpc/methods/get-vote-accounts.js.map +1 -0
- package/dist/esm/rpc/methods/index.d.ts +57 -0
- package/dist/esm/rpc/methods/index.d.ts.map +1 -0
- package/dist/esm/rpc/methods/index.js +68 -0
- package/dist/esm/rpc/methods/index.js.map +1 -0
- package/dist/esm/rpc/methods/is-blockhash-valid.d.ts +27 -0
- package/dist/esm/rpc/methods/is-blockhash-valid.d.ts.map +1 -0
- package/dist/esm/rpc/methods/is-blockhash-valid.js +24 -0
- package/dist/esm/rpc/methods/is-blockhash-valid.js.map +1 -0
- package/dist/esm/rpc/methods/minimum-ledger-slot.d.ts +23 -0
- package/dist/esm/rpc/methods/minimum-ledger-slot.d.ts.map +1 -0
- package/dist/esm/rpc/methods/minimum-ledger-slot.js +18 -0
- package/dist/esm/rpc/methods/minimum-ledger-slot.js.map +1 -0
- package/dist/esm/rpc/methods/request-airdrop.d.ts +29 -0
- package/dist/esm/rpc/methods/request-airdrop.d.ts.map +1 -0
- package/dist/esm/rpc/methods/request-airdrop.js +27 -0
- package/dist/esm/rpc/methods/request-airdrop.js.map +1 -0
- package/dist/esm/rpc/methods/send-transaction.d.ts +38 -0
- package/dist/esm/rpc/methods/send-transaction.d.ts.map +1 -0
- package/dist/esm/rpc/methods/send-transaction.js +31 -0
- package/dist/esm/rpc/methods/send-transaction.js.map +1 -0
- package/dist/esm/rpc/methods/simulate-transaction.d.ts +63 -0
- package/dist/esm/rpc/methods/simulate-transaction.d.ts.map +1 -0
- package/dist/esm/rpc/methods/simulate-transaction.js +34 -0
- package/dist/esm/rpc/methods/simulate-transaction.js.map +1 -0
- package/dist/esm/rpc/solana-rpc.d.ts +190 -0
- package/dist/esm/rpc/solana-rpc.d.ts.map +1 -0
- package/dist/esm/rpc/solana-rpc.js +136 -0
- package/dist/esm/rpc/solana-rpc.js.map +1 -0
- package/dist/esm/utils/env.d.ts +49 -0
- package/dist/esm/utils/env.d.ts.map +1 -0
- package/dist/esm/utils/env.js +47 -0
- package/dist/esm/utils/env.js.map +1 -0
- package/dist/esm/utils/helpers.d.ts +92 -87
- package/dist/esm/utils/helpers.d.ts.map +1 -1
- package/dist/esm/utils/helpers.js +96 -232
- package/dist/esm/utils/helpers.js.map +1 -1
- package/dist/esm/utils/index.d.ts +10 -0
- package/dist/esm/utils/index.d.ts.map +1 -0
- package/dist/esm/utils/index.js +10 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/synapse.d.ts +132 -0
- package/dist/esm/utils/synapse.d.ts.map +1 -0
- package/dist/esm/utils/synapse.js +163 -0
- package/dist/esm/utils/synapse.js.map +1 -0
- package/dist/esm/websocket/client.d.ts +97 -177
- package/dist/esm/websocket/client.d.ts.map +1 -1
- package/dist/esm/websocket/client.js +254 -402
- package/dist/esm/websocket/client.js.map +1 -1
- package/dist/esm/websocket/index.d.ts +6 -3
- package/dist/esm/websocket/index.d.ts.map +1 -1
- package/dist/esm/websocket/index.js +6 -2
- package/dist/esm/websocket/index.js.map +1 -1
- package/dist/esm/websocket/types.d.ts +120 -0
- package/dist/esm/websocket/types.d.ts.map +1 -0
- package/dist/esm/websocket/types.js +2 -0
- package/dist/esm/websocket/types.js.map +1 -0
- package/package.json +81 -74
- package/dist/cjs/advanced/circuit-breaker.d.ts +0 -111
- package/dist/cjs/advanced/circuit-breaker.d.ts.map +0 -1
- package/dist/cjs/advanced/circuit-breaker.js +0 -278
- package/dist/cjs/advanced/circuit-breaker.js.map +0 -1
- package/dist/cjs/advanced/index.d.ts +0 -8
- package/dist/cjs/advanced/index.d.ts.map +0 -1
- package/dist/cjs/advanced/index.js +0 -13
- package/dist/cjs/advanced/index.js.map +0 -1
- package/dist/cjs/advanced/load-balancer.d.ts +0 -114
- package/dist/cjs/advanced/load-balancer.d.ts.map +0 -1
- package/dist/cjs/advanced/load-balancer.js +0 -354
- package/dist/cjs/advanced/load-balancer.js.map +0 -1
- package/dist/cjs/advanced/smart-caching.d.ts +0 -113
- package/dist/cjs/advanced/smart-caching.d.ts.map +0 -1
- package/dist/cjs/advanced/smart-caching.js +0 -461
- package/dist/cjs/advanced/smart-caching.js.map +0 -1
- package/dist/cjs/advanced/types.d.ts +0 -228
- package/dist/cjs/advanced/types.d.ts.map +0 -1
- package/dist/cjs/advanced/types.js +0 -7
- package/dist/cjs/advanced/types.js.map +0 -1
- package/dist/cjs/ai/merkle-operation.d.ts +0 -245
- package/dist/cjs/ai/merkle-operation.d.ts.map +0 -1
- package/dist/cjs/ai/merkle-operation.js +0 -522
- package/dist/cjs/ai/merkle-operation.js.map +0 -1
- package/dist/cjs/ai/pda-manager.d.ts +0 -134
- package/dist/cjs/ai/pda-manager.d.ts.map +0 -1
- package/dist/cjs/ai/pda-manager.js +0 -250
- package/dist/cjs/ai/pda-manager.js.map +0 -1
- package/dist/cjs/ai/types.ai.d.ts +0 -172
- package/dist/cjs/ai/types.ai.d.ts.map +0 -1
- package/dist/cjs/ai/types.ai.js +0 -14
- package/dist/cjs/ai/types.ai.js.map +0 -1
- package/dist/cjs/ai/zero-combine-fetcher.d.ts +0 -171
- package/dist/cjs/ai/zero-combine-fetcher.d.ts.map +0 -1
- package/dist/cjs/ai/zero-combine-fetcher.js +0 -412
- package/dist/cjs/ai/zero-combine-fetcher.js.map +0 -1
- package/dist/cjs/client.d.ts +0 -83
- package/dist/cjs/client.d.ts.map +0 -1
- package/dist/cjs/client.js +0 -287
- package/dist/cjs/client.js.map +0 -1
- package/dist/cjs/defi/advanced-features.d.ts +0 -207
- package/dist/cjs/defi/advanced-features.d.ts.map +0 -1
- package/dist/cjs/defi/advanced-features.js +0 -382
- package/dist/cjs/defi/advanced-features.js.map +0 -1
- package/dist/cjs/defi/index.d.ts +0 -29
- package/dist/cjs/defi/index.d.ts.map +0 -1
- package/dist/cjs/defi/index.js +0 -50
- package/dist/cjs/defi/index.js.map +0 -1
- package/dist/cjs/defi/jito.d.ts +0 -118
- package/dist/cjs/defi/jito.d.ts.map +0 -1
- package/dist/cjs/defi/jito.js +0 -291
- package/dist/cjs/defi/jito.js.map +0 -1
- package/dist/cjs/defi/jupiter.d.ts +0 -143
- package/dist/cjs/defi/jupiter.d.ts.map +0 -1
- package/dist/cjs/defi/jupiter.js +0 -219
- package/dist/cjs/defi/jupiter.js.map +0 -1
- package/dist/cjs/defi/price-feed.d.ts +0 -63
- package/dist/cjs/defi/price-feed.d.ts.map +0 -1
- package/dist/cjs/defi/price-feed.js +0 -153
- package/dist/cjs/defi/price-feed.js.map +0 -1
- package/dist/cjs/defi/token-data.d.ts +0 -83
- package/dist/cjs/defi/token-data.d.ts.map +0 -1
- package/dist/cjs/defi/token-data.js +0 -205
- package/dist/cjs/defi/token-data.js.map +0 -1
- package/dist/cjs/defi/unstable-features.d.ts +0 -207
- package/dist/cjs/defi/unstable-features.d.ts.map +0 -1
- package/dist/cjs/defi/unstable-features.js +0 -382
- package/dist/cjs/defi/unstable-features.js.map +0 -1
- package/dist/cjs/defi/utils.d.ts +0 -265
- package/dist/cjs/defi/utils.d.ts.map +0 -1
- package/dist/cjs/defi/utils.js +0 -619
- package/dist/cjs/defi/utils.js.map +0 -1
- package/dist/cjs/methods/solana-rpc.d.ts +0 -362
- package/dist/cjs/methods/solana-rpc.d.ts.map +0 -1
- package/dist/cjs/methods/solana-rpc.js +0 -584
- package/dist/cjs/methods/solana-rpc.js.map +0 -1
- package/dist/cjs/nft/advanced-features.d.ts +0 -205
- package/dist/cjs/nft/advanced-features.d.ts.map +0 -1
- package/dist/cjs/nft/advanced-features.js +0 -529
- package/dist/cjs/nft/advanced-features.js.map +0 -1
- package/dist/cjs/nft/clients/index.d.ts +0 -8
- package/dist/cjs/nft/clients/index.d.ts.map +0 -1
- package/dist/cjs/nft/clients/index.js +0 -14
- package/dist/cjs/nft/clients/index.js.map +0 -1
- package/dist/cjs/nft/clients/magic-eden-client.d.ts +0 -101
- package/dist/cjs/nft/clients/magic-eden-client.d.ts.map +0 -1
- package/dist/cjs/nft/clients/magic-eden-client.js +0 -263
- package/dist/cjs/nft/clients/magic-eden-client.js.map +0 -1
- package/dist/cjs/nft/clients/metaplex-onchain-client.d.ts +0 -154
- package/dist/cjs/nft/clients/metaplex-onchain-client.d.ts.map +0 -1
- package/dist/cjs/nft/clients/metaplex-onchain-client.js +0 -408
- package/dist/cjs/nft/clients/metaplex-onchain-client.js.map +0 -1
- package/dist/cjs/nft/clients/tensor-client.d.ts +0 -79
- package/dist/cjs/nft/clients/tensor-client.d.ts.map +0 -1
- package/dist/cjs/nft/clients/tensor-client.js +0 -222
- package/dist/cjs/nft/clients/tensor-client.js.map +0 -1
- package/dist/cjs/nft/index.d.ts +0 -13
- package/dist/cjs/nft/index.d.ts.map +0 -1
- package/dist/cjs/nft/index.js +0 -37
- package/dist/cjs/nft/index.js.map +0 -1
- package/dist/cjs/nft/types.nft.d.ts +0 -342
- package/dist/cjs/nft/types.nft.d.ts.map +0 -1
- package/dist/cjs/nft/types.nft.js +0 -3
- package/dist/cjs/nft/types.nft.js.map +0 -1
- package/dist/cjs/nft/utils.d.ts +0 -46
- package/dist/cjs/nft/utils.d.ts.map +0 -1
- package/dist/cjs/nft/utils.js +0 -281
- package/dist/cjs/nft/utils.js.map +0 -1
- package/dist/cjs/types.d.ts +0 -525
- package/dist/cjs/types.d.ts.map +0 -1
- package/dist/cjs/types.js +0 -192
- package/dist/cjs/types.js.map +0 -1
- package/dist/cjs/utils/constant.d.ts +0 -8
- package/dist/cjs/utils/constant.d.ts.map +0 -1
- package/dist/cjs/utils/constant.js +0 -12
- package/dist/cjs/utils/constant.js.map +0 -1
- package/dist/docs/classes/AIError.html +0 -40
- package/dist/docs/classes/AIInvestmentAdvisor.html +0 -26
- package/dist/docs/classes/AIRarityCalculator.html +0 -28
- package/dist/docs/classes/ArbitrageDetector.html +0 -30
- package/dist/docs/classes/BatchingError.html +0 -40
- package/dist/docs/classes/CacheError.html +0 -40
- package/dist/docs/classes/CircuitBreaker.html +0 -38
- package/dist/docs/classes/CircuitBreakerError.html +0 -40
- package/dist/docs/classes/CollectionAnalytics.html +0 -30
- package/dist/docs/classes/DeFiError.html +0 -40
- package/dist/docs/classes/FlashLoanSimulator.html +0 -26
- package/dist/docs/classes/JitoIntegration.html +0 -53
- package/dist/docs/classes/JupiterIntegration.html +0 -43
- package/dist/docs/classes/Keypair.html +0 -28
- package/dist/docs/classes/LoadBalancer.html +0 -34
- package/dist/docs/classes/MEVProtection.html +0 -28
- package/dist/docs/classes/MarketplaceAggregator.html +0 -28
- package/dist/docs/classes/MerkleOperation.html +0 -74
- package/dist/docs/classes/NFTEngine.html +0 -29
- package/dist/docs/classes/NFTError.html +0 -40
- package/dist/docs/classes/PDAManager.html +0 -46
- package/dist/docs/classes/PortfolioAnalytics.html +0 -26
- package/dist/docs/classes/PriceFeedIntegration.html +0 -37
- package/dist/docs/classes/PublicKey.html +0 -46
- package/dist/docs/classes/RateLimitError.html +0 -39
- package/dist/docs/classes/SmartCaching.html +0 -42
- package/dist/docs/classes/Synapse.html +0 -6
- package/dist/docs/classes/SynapseSolanaEngine.html +0 -49
- package/dist/docs/classes/SynapseUtils.html +0 -25
- package/dist/docs/classes/TokenDataIntegration.html +0 -41
- package/dist/docs/classes/Transaction.html +0 -87
- package/dist/docs/classes/TransactionInstruction.html +0 -10
- package/dist/docs/classes/WebSocketClient.html +0 -47
- package/dist/docs/classes/WebSocketError.html +0 -40
- package/dist/docs/classes/YieldFarmingFinder.html +0 -26
- package/dist/docs/classes/ZeroCombineFetcher.html +0 -25
- package/dist/docs/functions/createSynapseClient.html +0 -2
- package/dist/docs/interfaces/AIAgentConfig.html +0 -11
- package/dist/docs/interfaces/AIAgentContext.html +0 -7
- package/dist/docs/interfaces/AIContext.html +0 -6
- package/dist/docs/interfaces/AIMethodResult.html +0 -6
- package/dist/docs/interfaces/AIRarityAnalysis.html +0 -3
- package/dist/docs/interfaces/AIResponse.html +0 -5
- package/dist/docs/interfaces/AdvancedClientConfig.html +0 -7
- package/dist/docs/interfaces/AdvancedEvents.html +0 -9
- package/dist/docs/interfaces/AdvancedMetricsData.html +0 -5
- package/dist/docs/interfaces/AdvancedPerformanceMetrics.html +0 -6
- package/dist/docs/interfaces/AgentAdapter.html +0 -6
- package/dist/docs/interfaces/AgentRiskReport.html +0 -6
- package/dist/docs/interfaces/AgentTradeSuggestion.html +0 -10
- package/dist/docs/interfaces/AggregatedCollectionStats.html +0 -36
- package/dist/docs/interfaces/ArbitrageOpportunity.html +0 -8
- package/dist/docs/interfaces/AutoTradingStrategy.html +0 -13
- package/dist/docs/interfaces/BatchResponse.html +0 -4
- package/dist/docs/interfaces/BatchResult.html +0 -6
- package/dist/docs/interfaces/BatcherConfig.html +0 -5
- package/dist/docs/interfaces/BirdeyeTokenPrice.html +0 -4
- package/dist/docs/interfaces/BlockhashInfo.html +0 -5
- package/dist/docs/interfaces/BuildSwapTxResult.html +0 -7
- package/dist/docs/interfaces/CacheStats.html +0 -9
- package/dist/docs/interfaces/ChunkInfo.html +0 -10
- package/dist/docs/interfaces/CircuitBreakerConfig.html +0 -6
- package/dist/docs/interfaces/ClientStats.html +0 -14
- package/dist/docs/interfaces/CollectionStats.html +0 -17
- package/dist/docs/interfaces/CollectionTrends.html +0 -7
- package/dist/docs/interfaces/CompressedNFTInfo.html +0 -13
- package/dist/docs/interfaces/ConnectionEvents.html +0 -11
- package/dist/docs/interfaces/DeFiConfig.html +0 -16
- package/dist/docs/interfaces/DiagnosticsResult.html +0 -6
- package/dist/docs/interfaces/ExecuteSwapParams.html +0 -10
- package/dist/docs/interfaces/FetchConfig.html +0 -7
- package/dist/docs/interfaces/FlashLoanAction.html +0 -6
- package/dist/docs/interfaces/FlashLoanSimulation.html +0 -9
- package/dist/docs/interfaces/GatewayStats.html +0 -7
- package/dist/docs/interfaces/InscriptionResult.html +0 -18
- package/dist/docs/interfaces/InvestmentRecommendation.html +0 -10
- package/dist/docs/interfaces/JitoBundleParams.html +0 -4
- package/dist/docs/interfaces/JitoBundleResult.html +0 -6
- package/dist/docs/interfaces/JitoBundleStatus.html +0 -6
- package/dist/docs/interfaces/JitoTipAccount.html +0 -3
- package/dist/docs/interfaces/JupiterQuoteParams.html +0 -10
- package/dist/docs/interfaces/JupiterQuoteRequest.html +0 -17
- package/dist/docs/interfaces/JupiterQuoteResponse.html +0 -13
- package/dist/docs/interfaces/JupiterSwapOptions.html +0 -8
- package/dist/docs/interfaces/JupiterSwapResponse.html +0 -4
- package/dist/docs/interfaces/JupiterTokenPrice.html +0 -5
- package/dist/docs/interfaces/LoadBalancerConfig.html +0 -5
- package/dist/docs/interfaces/MEVProtectionConfig.html +0 -11
- package/dist/docs/interfaces/MEVProtectionResult.html +0 -6
- package/dist/docs/interfaces/MagicEdenActivity.html +0 -22
- package/dist/docs/interfaces/MagicEdenCollection.html +0 -22
- package/dist/docs/interfaces/MagicEdenCollectionStats.html +0 -17
- package/dist/docs/interfaces/MagicEdenErrorResponse.html +0 -4
- package/dist/docs/interfaces/MagicEdenListing.html +0 -24
- package/dist/docs/interfaces/MarketplaceClientConfig.html +0 -14
- package/dist/docs/interfaces/MarketplaceFloorPrices.html +0 -7
- package/dist/docs/interfaces/MarketplaceListing.html +0 -9
- package/dist/docs/interfaces/MerkleLeaf.html +0 -6
- package/dist/docs/interfaces/MerkleProof.html +0 -8
- package/dist/docs/interfaces/MerkleValidationResult.html +0 -10
- package/dist/docs/interfaces/MultiChainSignal.html +0 -8
- package/dist/docs/interfaces/NFTAttribute.html +0 -4
- package/dist/docs/interfaces/NFTConfig.html +0 -6
- package/dist/docs/interfaces/NFTInfo.html +0 -10
- package/dist/docs/interfaces/NFTMetadata.html +0 -9
- package/dist/docs/interfaces/NormalizedMarketplaceListing.html +0 -18
- package/dist/docs/interfaces/OOBECompatibleAgent.html +0 -8
- package/dist/docs/interfaces/PDAConfig.html +0 -10
- package/dist/docs/interfaces/ParsedAccountInfo.html +0 -8
- package/dist/docs/interfaces/PerformanceMetrics.html +0 -9
- package/dist/docs/interfaces/PortfolioMetrics.html +0 -10
- package/dist/docs/interfaces/PriceData.html +0 -8
- package/dist/docs/interfaces/ProofRecord.html +0 -12
- package/dist/docs/interfaces/QuoteRequestCommon.html +0 -11
- package/dist/docs/interfaces/QuoteResponse.html +0 -6
- package/dist/docs/interfaces/RarityAlgorithmConfig.html +0 -3
- package/dist/docs/interfaces/RarityScore.html +0 -8
- package/dist/docs/interfaces/RaydiumBuildSwapParams.html +0 -14
- package/dist/docs/interfaces/RaydiumQuoteRequest.html +0 -14
- package/dist/docs/interfaces/RequestOptions.html +0 -12
- package/dist/docs/interfaces/RetryAttempt.html +0 -5
- package/dist/docs/interfaces/SecurityThreat.html +0 -6
- package/dist/docs/interfaces/Signer.html +0 -4
- package/dist/docs/interfaces/SmartCacheConfig.html +0 -7
- package/dist/docs/interfaces/SmartQueryOptions.html +0 -10
- package/dist/docs/interfaces/StressTestOptions.html +0 -8
- package/dist/docs/interfaces/StressTestResult.html +0 -9
- package/dist/docs/interfaces/SubscriptionConfig.html +0 -9
- package/dist/docs/interfaces/SubscriptionOptions.html +0 -7
- package/dist/docs/interfaces/SubscriptionResult.html +0 -7
- package/dist/docs/interfaces/SynapseConfig.html +0 -13
- package/dist/docs/interfaces/SynapseLikeClient.html +0 -4
- package/dist/docs/interfaces/TensorCollectionStats.html +0 -33
- package/dist/docs/interfaces/TensorErrorResponse.html +0 -5
- package/dist/docs/interfaces/TensorListing.html +0 -16
- package/dist/docs/interfaces/TensorSale.html +0 -16
- package/dist/docs/interfaces/TokenAccountInfo.html +0 -12
- package/dist/docs/interfaces/TokenHolding.html +0 -8
- package/dist/docs/interfaces/TokenInfo.html +0 -7
- package/dist/docs/interfaces/TokenLargestAccount.html +0 -5
- package/dist/docs/interfaces/TokenSupply.html +0 -5
- package/dist/docs/interfaces/TradeExecution.html +0 -14
- package/dist/docs/interfaces/TransactionSignature.html +0 -8
- package/dist/docs/interfaces/UpstreamHealth.html +0 -8
- package/dist/docs/interfaces/UserPDAs.html +0 -10
- package/dist/docs/interfaces/WebSocketConfig.html +0 -12
- package/dist/docs/interfaces/WebSocketMessage.html +0 -6
- package/dist/docs/interfaces/YieldOpportunity.html +0 -8
- package/dist/docs/interfaces/ZeroChunk.html +0 -8
- package/dist/docs/interfaces/ZeroCombineResult.html +0 -3
- package/dist/docs/media/README-1.md +0 -778
- package/dist/docs/media/README-2.md +0 -1050
- package/dist/docs/media/README-3.md +0 -1522
- package/dist/docs/media/README-4.md +0 -869
- package/dist/docs/media/README-5.md +0 -857
- package/dist/docs/media/README-6.md +0 -727
- package/dist/docs/media/README.md +0 -766
- package/dist/docs/types/BlockhashWithExpiryBlockHeight.html +0 -1
- package/dist/docs/types/RiskTolerance.html +0 -1
- package/dist/docs/types/SimulatedTransactionResponse.html +0 -1
- package/dist/esm/advanced/circuit-breaker.d.ts +0 -111
- package/dist/esm/advanced/circuit-breaker.d.ts.map +0 -1
- package/dist/esm/advanced/circuit-breaker.js +0 -274
- package/dist/esm/advanced/circuit-breaker.js.map +0 -1
- package/dist/esm/advanced/index.d.ts +0 -8
- package/dist/esm/advanced/index.d.ts.map +0 -1
- package/dist/esm/advanced/index.js +0 -7
- package/dist/esm/advanced/index.js.map +0 -1
- package/dist/esm/advanced/load-balancer.d.ts +0 -114
- package/dist/esm/advanced/load-balancer.d.ts.map +0 -1
- package/dist/esm/advanced/load-balancer.js +0 -350
- package/dist/esm/advanced/load-balancer.js.map +0 -1
- package/dist/esm/advanced/smart-caching.d.ts +0 -113
- package/dist/esm/advanced/smart-caching.d.ts.map +0 -1
- package/dist/esm/advanced/smart-caching.js +0 -457
- package/dist/esm/advanced/smart-caching.js.map +0 -1
- package/dist/esm/advanced/types.d.ts +0 -228
- package/dist/esm/advanced/types.d.ts.map +0 -1
- package/dist/esm/advanced/types.js +0 -6
- package/dist/esm/advanced/types.js.map +0 -1
- package/dist/esm/ai/merkle-operation.d.ts +0 -245
- package/dist/esm/ai/merkle-operation.d.ts.map +0 -1
- package/dist/esm/ai/merkle-operation.js +0 -485
- package/dist/esm/ai/merkle-operation.js.map +0 -1
- package/dist/esm/ai/pda-manager.d.ts +0 -134
- package/dist/esm/ai/pda-manager.d.ts.map +0 -1
- package/dist/esm/ai/pda-manager.js +0 -213
- package/dist/esm/ai/pda-manager.js.map +0 -1
- package/dist/esm/ai/types.ai.d.ts +0 -172
- package/dist/esm/ai/types.ai.d.ts.map +0 -1
- package/dist/esm/ai/types.ai.js +0 -13
- package/dist/esm/ai/types.ai.js.map +0 -1
- package/dist/esm/ai/zero-combine-fetcher.d.ts +0 -171
- package/dist/esm/ai/zero-combine-fetcher.d.ts.map +0 -1
- package/dist/esm/ai/zero-combine-fetcher.js +0 -408
- package/dist/esm/ai/zero-combine-fetcher.js.map +0 -1
- package/dist/esm/client.d.ts +0 -83
- package/dist/esm/client.d.ts.map +0 -1
- package/dist/esm/client.js +0 -283
- package/dist/esm/client.js.map +0 -1
- package/dist/esm/defi/advanced-features.d.ts +0 -207
- package/dist/esm/defi/advanced-features.d.ts.map +0 -1
- package/dist/esm/defi/advanced-features.js +0 -374
- package/dist/esm/defi/advanced-features.js.map +0 -1
- package/dist/esm/defi/index.d.ts +0 -29
- package/dist/esm/defi/index.d.ts.map +0 -1
- package/dist/esm/defi/index.js +0 -37
- package/dist/esm/defi/index.js.map +0 -1
- package/dist/esm/defi/jito.d.ts +0 -118
- package/dist/esm/defi/jito.d.ts.map +0 -1
- package/dist/esm/defi/jito.js +0 -287
- package/dist/esm/defi/jito.js.map +0 -1
- package/dist/esm/defi/jupiter.d.ts +0 -143
- package/dist/esm/defi/jupiter.d.ts.map +0 -1
- package/dist/esm/defi/jupiter.js +0 -215
- package/dist/esm/defi/jupiter.js.map +0 -1
- package/dist/esm/defi/price-feed.d.ts +0 -63
- package/dist/esm/defi/price-feed.d.ts.map +0 -1
- package/dist/esm/defi/price-feed.js +0 -149
- package/dist/esm/defi/price-feed.js.map +0 -1
- package/dist/esm/defi/token-data.d.ts +0 -83
- package/dist/esm/defi/token-data.d.ts.map +0 -1
- package/dist/esm/defi/token-data.js +0 -201
- package/dist/esm/defi/token-data.js.map +0 -1
- package/dist/esm/defi/unstable-features.d.ts +0 -207
- package/dist/esm/defi/unstable-features.d.ts.map +0 -1
- package/dist/esm/defi/unstable-features.js +0 -374
- package/dist/esm/defi/unstable-features.js.map +0 -1
- package/dist/esm/defi/utils.d.ts +0 -265
- package/dist/esm/defi/utils.d.ts.map +0 -1
- package/dist/esm/defi/utils.js +0 -582
- package/dist/esm/defi/utils.js.map +0 -1
- package/dist/esm/methods/solana-rpc.d.ts +0 -362
- package/dist/esm/methods/solana-rpc.d.ts.map +0 -1
- package/dist/esm/methods/solana-rpc.js +0 -532
- package/dist/esm/methods/solana-rpc.js.map +0 -1
- package/dist/esm/nft/advanced-features.d.ts +0 -205
- package/dist/esm/nft/advanced-features.d.ts.map +0 -1
- package/dist/esm/nft/advanced-features.js +0 -489
- package/dist/esm/nft/advanced-features.js.map +0 -1
- package/dist/esm/nft/clients/index.d.ts +0 -8
- package/dist/esm/nft/clients/index.d.ts.map +0 -1
- package/dist/esm/nft/clients/index.js +0 -8
- package/dist/esm/nft/clients/index.js.map +0 -1
- package/dist/esm/nft/clients/magic-eden-client.d.ts +0 -101
- package/dist/esm/nft/clients/magic-eden-client.d.ts.map +0 -1
- package/dist/esm/nft/clients/magic-eden-client.js +0 -259
- package/dist/esm/nft/clients/magic-eden-client.js.map +0 -1
- package/dist/esm/nft/clients/metaplex-onchain-client.d.ts +0 -154
- package/dist/esm/nft/clients/metaplex-onchain-client.d.ts.map +0 -1
- package/dist/esm/nft/clients/metaplex-onchain-client.js +0 -404
- package/dist/esm/nft/clients/metaplex-onchain-client.js.map +0 -1
- package/dist/esm/nft/clients/tensor-client.d.ts +0 -79
- package/dist/esm/nft/clients/tensor-client.d.ts.map +0 -1
- package/dist/esm/nft/clients/tensor-client.js +0 -218
- package/dist/esm/nft/clients/tensor-client.js.map +0 -1
- package/dist/esm/nft/index.d.ts +0 -13
- package/dist/esm/nft/index.d.ts.map +0 -1
- package/dist/esm/nft/index.js +0 -15
- package/dist/esm/nft/index.js.map +0 -1
- package/dist/esm/nft/types.nft.d.ts +0 -342
- package/dist/esm/nft/types.nft.d.ts.map +0 -1
- package/dist/esm/nft/types.nft.js +0 -2
- package/dist/esm/nft/types.nft.js.map +0 -1
- package/dist/esm/nft/utils.d.ts +0 -46
- package/dist/esm/nft/utils.d.ts.map +0 -1
- package/dist/esm/nft/utils.js +0 -276
- package/dist/esm/nft/utils.js.map +0 -1
- package/dist/esm/types.d.ts +0 -525
- package/dist/esm/types.d.ts.map +0 -1
- package/dist/esm/types.js +0 -178
- package/dist/esm/types.js.map +0 -1
- package/dist/esm/utils/constant.d.ts +0 -8
- package/dist/esm/utils/constant.d.ts.map +0 -1
- package/dist/esm/utils/constant.js +0 -8
- package/dist/esm/utils/constant.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,1393 +1,579 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @oobe-protocol-labs/synapse-client-sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Typed Solana RPC gateway SDK for Node.js and the browser.
|
|
4
|
+
Covers JSON-RPC, WebSocket PubSub, gRPC/Geyser streaming, DAS (Digital Asset Standard),
|
|
5
|
+
AI agent tooling (LangChain + Zod), and the x402 HTTP payment protocol --
|
|
6
|
+
all behind a single `SynapseClient` entry point.
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
| | |
|
|
9
|
+
|-|-|
|
|
10
|
+
| **Version** | 1.0.1 |
|
|
11
|
+
| **License** | MIT |
|
|
12
|
+
| **Node** | >= 18.0.0 |
|
|
13
|
+
| **TypeScript** | >= 5.0 |
|
|
14
|
+
| **Registry** | `npm i @oobe-protocol-labs/synapse-client-sdk` |
|
|
6
15
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
┌──────────────────────────────────────────────────────────────────────┐
|
|
11
|
-
│ Synapse Client SDK │
|
|
12
|
-
├──────────────────────────────────────────────────────────────────────┤
|
|
13
|
-
│ │
|
|
14
|
-
│ ┌─────────────┐ ┌──────────────┐ ┌────────────┐ ┌────────────┐ │
|
|
15
|
-
│ │ Client │ │ Advanced │ │ WebSocket │ │ Analytics │ │
|
|
16
|
-
│ │ Core │ │ Features │ │ Client │ │ Engine │ │
|
|
17
|
-
│ └─────────────┘ └──────────────┘ └────────────┘ └────────────┘ │
|
|
18
|
-
│ │
|
|
19
|
-
│ ┌─────────────┐ ┌──────────────┐ ┌────────────┐ ┌────────────┐ │
|
|
20
|
-
│ │ DeFi │ │ NFT │ │ AI │ │ RPC │ │
|
|
21
|
-
│ │ Module │ │ Module │ │ Module │ │ Methods │ │
|
|
22
|
-
│ └─────────────┘ └──────────────┘ └────────────┘ └────────────┘ │
|
|
23
|
-
│ │
|
|
24
|
-
├──────────────────────────────────────────────────────────────────────┤
|
|
25
|
-
│ Solana RPC Gateway Layer │
|
|
26
|
-
└──────────────────────────────────────────────────────────────────────┘
|
|
27
|
-
```
|
|
16
|
+
---
|
|
28
17
|
|
|
29
|
-
##
|
|
18
|
+
## Table of Contents
|
|
19
|
+
|
|
20
|
+
1. [Installation](#installation)
|
|
21
|
+
2. [Quick Start](#quick-start)
|
|
22
|
+
3. [Architecture](#architecture)
|
|
23
|
+
4. [Module Reference](#module-reference)
|
|
24
|
+
- [core/](#core)
|
|
25
|
+
- [rpc/](#rpc)
|
|
26
|
+
- [das/](#das)
|
|
27
|
+
- [websocket/](#websocket)
|
|
28
|
+
- [grpc/](#grpc)
|
|
29
|
+
- [ai/](#ai)
|
|
30
|
+
- [utils/](#utils)
|
|
31
|
+
5. [Endpoints and Regions](#endpoints-and-regions)
|
|
32
|
+
6. [Branded Types](#branded-types)
|
|
33
|
+
7. [AI Agent Integration](#ai-agent-integration)
|
|
34
|
+
- [Zod Schemas and LangChain Tools](#zod-schemas-and-langchain-tools)
|
|
35
|
+
- [Protocol Tools (Jupiter, Raydium, Metaplex)](#protocol-tools)
|
|
36
|
+
- [Agent Commerce Gateway](#agent-commerce-gateway)
|
|
37
|
+
- [x402 Payment Protocol](#x402-payment-protocol)
|
|
38
|
+
8. [Testing](#testing)
|
|
39
|
+
9. [Build and Development](#build-and-development)
|
|
40
|
+
10. [Package Exports](#package-exports)
|
|
41
|
+
11. [Documentation](#documentation)
|
|
42
|
+
12. [Contributing](#contributing)
|
|
43
|
+
13. [License](#license)
|
|
30
44
|
|
|
31
|
-
|
|
32
|
-
|--------|--------------|--------|-------------|
|
|
33
|
-
| **Core Client** | RPC calls, batching, rotation, statistics | Production | 10k+ req/s |
|
|
34
|
-
| **Advanced** | Circuit breaker, smart caching, load balancing | Production | 99.9% uptime |
|
|
35
|
-
| **WebSocket** | Real-time subscriptions, auto-reconnect | Production | <50ms latency |
|
|
36
|
-
| **DeFi** | Jupiter, Jito, token data, price feeds | Production | Sub-second execution |
|
|
37
|
-
| **NFT** | Metadata, rarity, marketplace aggregation | Production | <100ms queries |
|
|
38
|
-
| **AI** | OOBE Protocol, Zero-Combine, PDA management | Production | ML-powered |
|
|
39
|
-
| **Analytics** | Metrics, predictions, anomaly detection | Production | Real-time insights |
|
|
40
|
-
| **Methods** | 70+ Solana RPC methods | Production | Type-safe |
|
|
45
|
+
---
|
|
41
46
|
|
|
42
47
|
## Installation
|
|
43
48
|
|
|
44
49
|
```bash
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
pnpm add @synapse/client-sdk
|
|
48
|
-
# or
|
|
49
|
-
yarn add @synapse/client-sdk
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Quick Start
|
|
53
|
-
|
|
54
|
-
### Basic Client Initialization
|
|
50
|
+
# pnpm (recommended)
|
|
51
|
+
pnpm add @oobe-protocol-labs/synapse-client-sdk
|
|
55
52
|
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
# npm
|
|
54
|
+
npm install @oobe-protocol-labs/synapse-client-sdk
|
|
58
55
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
apiKey: process.env.SYNAPSE_API_KEY,
|
|
62
|
-
timeout: 30000,
|
|
63
|
-
debug: false,
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
// Execute RPC call
|
|
67
|
-
const balance = await client.call('getBalance', ['YourPublicKeyHere']);
|
|
68
|
-
console.log('Balance (SOL):', balance / 1e9);
|
|
69
|
-
|
|
70
|
-
// Batch multiple RPC calls
|
|
71
|
-
const results = await client.batch([
|
|
72
|
-
{ method: 'getBalance', params: ['address1'] },
|
|
73
|
-
{ method: 'getAccountInfo', params: ['address2', { encoding: 'jsonParsed' }] },
|
|
74
|
-
{ method: 'getBlockHeight', params: [] },
|
|
75
|
-
]);
|
|
76
|
-
|
|
77
|
-
console.log('Batch results:', results);
|
|
56
|
+
# yarn
|
|
57
|
+
yarn add @oobe-protocol-labs/synapse-client-sdk
|
|
78
58
|
```
|
|
79
59
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
```typescript
|
|
83
|
-
const stats = client.getStats();
|
|
60
|
+
TypeScript is a peer dependency. Ensure `typescript >= 5.0` is installed in your project.
|
|
84
61
|
|
|
85
|
-
|
|
86
|
-
requestCount: stats.requestCount,
|
|
87
|
-
errorCount: stats.errorCount,
|
|
88
|
-
errorRate: (stats.errorCount / stats.requestCount * 100).toFixed(2) + '%',
|
|
89
|
-
averageLatency: stats.averageLatency.toFixed(2) + 'ms',
|
|
90
|
-
cacheHitRate: (stats.cacheHitRate * 100).toFixed(2) + '%',
|
|
91
|
-
activeConnections: stats.activeConnections,
|
|
92
|
-
pendingRequests: stats.pendingRequests,
|
|
93
|
-
uptime: Math.floor((Date.now() - stats.uptime) / 1000) + 's',
|
|
94
|
-
});
|
|
95
|
-
```
|
|
62
|
+
---
|
|
96
63
|
|
|
97
|
-
|
|
64
|
+
## Quick Start
|
|
98
65
|
|
|
99
|
-
|
|
66
|
+
```ts
|
|
67
|
+
import { SynapseClient, Pubkey } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
100
68
|
|
|
101
|
-
```typescript
|
|
102
69
|
const client = new SynapseClient({
|
|
103
|
-
endpoint:
|
|
104
|
-
|
|
105
|
-
'https://rpc2.synapse.com',
|
|
106
|
-
'https://rpc3.synapse.com',
|
|
107
|
-
],
|
|
108
|
-
apiKey: process.env.SYNAPSE_API_KEY,
|
|
109
|
-
timeout: 30000,
|
|
70
|
+
endpoint: 'https://rpc.synapse.com',
|
|
71
|
+
apiKey: 'sk-...',
|
|
110
72
|
});
|
|
111
73
|
|
|
112
|
-
//
|
|
113
|
-
client.
|
|
114
|
-
|
|
115
|
-
});
|
|
116
|
-
```
|
|
74
|
+
// JSON-RPC
|
|
75
|
+
const balance = await client.rpc.getBalance(Pubkey('So11111111111111111111111111111111'));
|
|
76
|
+
console.log(balance.value); // lamports
|
|
117
77
|
|
|
118
|
-
|
|
78
|
+
// DAS (compressed NFTs)
|
|
79
|
+
const asset = await client.das.getAsset(Pubkey('...'));
|
|
80
|
+
console.log(asset.content.metadata?.name);
|
|
119
81
|
|
|
120
|
-
|
|
82
|
+
// WebSocket
|
|
83
|
+
client.ws.onSlotChange((slot) => console.log('slot', slot));
|
|
121
84
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
```typescript
|
|
125
|
-
interface SynapseConfig {
|
|
126
|
-
endpoint: string | string[]; // Single or multiple RPC endpoints
|
|
127
|
-
apiKey?: string; // Optional API key for authentication
|
|
128
|
-
timeout?: number; // Request timeout in milliseconds (default: 30000)
|
|
129
|
-
debug?: boolean; // Enable debug logging (default: false)
|
|
130
|
-
}
|
|
85
|
+
// Cleanup
|
|
86
|
+
client.destroy();
|
|
131
87
|
```
|
|
132
88
|
|
|
133
|
-
###
|
|
134
|
-
|
|
135
|
-
| Method | Signature | Description |
|
|
136
|
-
|--------|-----------|-------------|
|
|
137
|
-
| `call<T>` | `(method: string, params?: any[], options?: RequestOptions) => Promise<T>` | Execute single RPC call |
|
|
138
|
-
| `batch` | `(requests: RpcRequest[]) => Promise<RpcResponse[]>` | Execute multiple RPC calls in parallel |
|
|
139
|
-
| `getStats` | `() => ClientStats` | Get client performance statistics |
|
|
140
|
-
| `setEndpoint` | `(endpoint: string \| string[]) => void` | Update RPC endpoint(s) |
|
|
141
|
-
| `clearCache` | `() => void` | Clear internal request cache |
|
|
142
|
-
| `destroy` | `() => Promise<void>` | Cleanup resources and connections |
|
|
89
|
+
### Factory helpers
|
|
143
90
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
```typescript
|
|
147
|
-
// Request lifecycle events
|
|
148
|
-
client.on('request', ({ method, params, id }) => {
|
|
149
|
-
console.log(`[${id}] ${method}`, params);
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
client.on('response', ({ method, result, latency, id }) => {
|
|
153
|
-
console.log(`[${id}] ${method} completed in ${latency}ms`);
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
client.on('error', ({ method, error, attempt, id }) => {
|
|
157
|
-
console.error(`[${id}] ${method} failed (attempt ${attempt}):`, error.message);
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
// Retry and rotation events
|
|
161
|
-
client.on('retry', ({ method, attempt, maxAttempts, delay }) => {
|
|
162
|
-
console.log(`Retrying ${method}: ${attempt}/${maxAttempts} after ${delay}ms`);
|
|
163
|
-
});
|
|
91
|
+
```ts
|
|
92
|
+
import { createSynapse } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
164
93
|
|
|
165
|
-
client
|
|
166
|
-
console.log(`Endpoint rotation: ${oldEndpoint} → ${newEndpoint} (${reason})`);
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
// Cache events
|
|
170
|
-
client.on('cache-hit', ({ key, ttl, layer }) => {
|
|
171
|
-
console.log(`Cache hit: ${key} from ${layer} (TTL: ${ttl}ms)`);
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
client.on('cache-miss', ({ key }) => {
|
|
175
|
-
console.log(`Cache miss: ${key}`);
|
|
176
|
-
});
|
|
94
|
+
const client = createSynapse({ endpoint: 'https://rpc.synapse.com' });
|
|
177
95
|
```
|
|
178
96
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
## Module Documentation
|
|
182
|
-
|
|
183
|
-
### 1. Advanced Features Module
|
|
184
|
-
|
|
185
|
-
**Location:** [`src/advanced/`](./src/advanced/README.md)
|
|
97
|
+
```ts
|
|
98
|
+
import { SynapseClient, SynapseNetwork, SynapseRegion } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
186
99
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|-----------|---------|--------------|
|
|
193
|
-
| **Circuit Breaker** | Prevent cascade failures | State machine (closed/open/half-open), automatic recovery, fallback support |
|
|
194
|
-
| **Smart Caching** | Multi-layer intelligent caching | L1 (memory), L2 (extended), L3 (Redis), ML predictive loading, compression |
|
|
195
|
-
| **Load Balancer** | Request distribution | Round-robin, weighted, least-connections, IP hash, EWMA strategies |
|
|
196
|
-
|
|
197
|
-
#### Quick Example
|
|
198
|
-
|
|
199
|
-
```typescript
|
|
200
|
-
import { SmartCaching, CircuitBreaker, LoadBalancer } from '@synapse/client-sdk/advanced';
|
|
201
|
-
|
|
202
|
-
// Multi-layer caching
|
|
203
|
-
const cache = new SmartCaching({
|
|
204
|
-
maxSize: 10000,
|
|
205
|
-
enableL2: true,
|
|
206
|
-
enableDistributed: true,
|
|
207
|
-
enablePredictive: true,
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
// Circuit breaker protection
|
|
211
|
-
const breaker = new CircuitBreaker({
|
|
212
|
-
failureThreshold: 5,
|
|
213
|
-
timeout: 60000,
|
|
214
|
-
retryInterval: 30000,
|
|
215
|
-
enableFallback: true,
|
|
100
|
+
// Auto-resolved endpoint by network and region
|
|
101
|
+
const client = SynapseClient.fromEndpoint({
|
|
102
|
+
network: SynapseNetwork.Mainnet,
|
|
103
|
+
region: SynapseRegion.US,
|
|
104
|
+
apiKey: 'sk-...',
|
|
216
105
|
});
|
|
217
|
-
|
|
218
|
-
// Load balancing
|
|
219
|
-
const balancer = new LoadBalancer({
|
|
220
|
-
endpoints: ['rpc1', 'rpc2', 'rpc3'],
|
|
221
|
-
strategy: 'ewma', // Latency-aware
|
|
222
|
-
healthCheckInterval: 30000,
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
// Combined usage
|
|
226
|
-
const result = await breaker.execute(
|
|
227
|
-
async () => {
|
|
228
|
-
const endpoint = balancer.getNextEndpoint();
|
|
229
|
-
const cached = await cache.get(cacheKey);
|
|
230
|
-
if (cached) return cached;
|
|
231
|
-
|
|
232
|
-
const data = await fetchFromEndpoint(endpoint);
|
|
233
|
-
await cache.set(cacheKey, data, { ttl: 60000 });
|
|
234
|
-
return data;
|
|
235
|
-
},
|
|
236
|
-
async () => {
|
|
237
|
-
// Fallback to stale cache
|
|
238
|
-
return await cache.get(cacheKey, { allowStale: true });
|
|
239
|
-
}
|
|
240
|
-
);
|
|
241
106
|
```
|
|
242
107
|
|
|
243
|
-
**[Read Full Documentation →](./src/advanced/README.md)**
|
|
244
|
-
|
|
245
108
|
---
|
|
246
109
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
**Location:** [`src/websocket/`](./src/websocket/README.md)
|
|
250
|
-
|
|
251
|
-
Real-time Solana blockchain data streaming with intelligent reconnection.
|
|
252
|
-
|
|
253
|
-
#### Subscription Types
|
|
254
|
-
|
|
255
|
-
| Type | Method | Use Case | Commitment Options |
|
|
256
|
-
|------|--------|----------|-------------------|
|
|
257
|
-
| **Account** | `accountSubscribe` | Monitor account changes | processed, confirmed, finalized |
|
|
258
|
-
| **Program** | `programSubscribe` | Track program accounts | processed, confirmed, finalized |
|
|
259
|
-
| **Slot** | `slotSubscribe` | Block production tracking | N/A |
|
|
260
|
-
| **Signature** | `signatureSubscribe` | Transaction confirmation | processed, confirmed, finalized |
|
|
261
|
-
| **Logs** | `logsSubscribe` | Transaction logs | processed, confirmed, finalized |
|
|
262
|
-
|
|
263
|
-
#### Quick Example
|
|
110
|
+
## Architecture
|
|
264
111
|
|
|
265
|
-
```typescript
|
|
266
|
-
import { WebSocketClient } from '@synapse/client-sdk/websocket';
|
|
267
|
-
|
|
268
|
-
const wsClient = new WebSocketClient({
|
|
269
|
-
endpoint: 'wss://your-synapse-gateway.com',
|
|
270
|
-
apiKey: process.env.SYNAPSE_API_KEY,
|
|
271
|
-
autoReconnect: true,
|
|
272
|
-
maxReconnectAttempts: 10,
|
|
273
|
-
reconnectDelay: 5000,
|
|
274
|
-
enableSmartCaching: true,
|
|
275
|
-
enableCircuitBreaker: true,
|
|
276
|
-
});
|
|
277
|
-
|
|
278
|
-
await wsClient.connect();
|
|
279
|
-
|
|
280
|
-
// Subscribe to account changes
|
|
281
|
-
const subId = await wsClient.accountSubscribe(
|
|
282
|
-
'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // USDC mint
|
|
283
|
-
(accountInfo) => {
|
|
284
|
-
console.log('Account lamports:', accountInfo.lamports);
|
|
285
|
-
console.log('Account owner:', accountInfo.owner);
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
commitment: 'confirmed',
|
|
289
|
-
encoding: 'jsonParsed',
|
|
290
|
-
enableCache: true,
|
|
291
|
-
resilient: true, // Auto-restore on reconnect
|
|
292
|
-
}
|
|
293
|
-
);
|
|
294
|
-
|
|
295
|
-
// Monitor metrics
|
|
296
|
-
wsClient.on('metrics-update', (metrics) => {
|
|
297
|
-
console.log('Subscriptions active:', metrics.subscriptionsActive);
|
|
298
|
-
console.log('Average latency:', metrics.averageLatency);
|
|
299
|
-
});
|
|
300
|
-
|
|
301
|
-
// Cleanup
|
|
302
|
-
await wsClient.accountUnsubscribe(subId);
|
|
303
|
-
await wsClient.disconnect();
|
|
304
112
|
```
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
#### Integrations Matrix
|
|
317
|
-
|
|
318
|
-
| Integration | Protocol | Features | Performance |
|
|
319
|
-
|-------------|----------|----------|-------------|
|
|
320
|
-
| **Jupiter** | Jupiter V6 API | Swap aggregation, route optimization, price discovery | <200ms quotes |
|
|
321
|
-
| **Jito** | Jito Block Engine | MEV protection, bundle submission, 8 regional endpoints | <50ms bundle |
|
|
322
|
-
| **Token Data** | Solana RPC | SPL token accounts, supply, holders, balances | <100ms queries |
|
|
323
|
-
| **Price Feed** | Jupiter + Birdeye | Multi-source aggregation, median calculation, streaming | <150ms prices |
|
|
324
|
-
|
|
325
|
-
#### Advanced Features
|
|
326
|
-
|
|
327
|
-
| Feature | Description | Complexity |
|
|
328
|
-
|---------|-------------|------------|
|
|
329
|
-
| **MEV Protection** | Sandwich attack prevention via Jito bundles | High |
|
|
330
|
-
| **Arbitrage Detection** | Cross-DEX opportunity scanning | High |
|
|
331
|
-
| **Portfolio Analytics** | Risk assessment and diversification scoring | Medium |
|
|
332
|
-
| **Flash Loan Simulator** | Profitability analysis without execution | Medium |
|
|
333
|
-
| **Yield Farming Finder** | APY discovery across protocols | Low |
|
|
334
|
-
|
|
335
|
-
#### Quick Example
|
|
336
|
-
|
|
337
|
-
```typescript
|
|
338
|
-
import { JupiterIntegration, JitoIntegration, TokenDataIntegration } from '@synapse/client-sdk/defi';
|
|
339
|
-
|
|
340
|
-
// Jupiter swap
|
|
341
|
-
const jupiter = new JupiterIntegration(client);
|
|
342
|
-
const quote = await jupiter.getQuote({
|
|
343
|
-
inputMint: 'So11111111111111111111111111111111111111112', // SOL
|
|
344
|
-
outputMint: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // USDC
|
|
345
|
-
amount: 1_000_000_000, // 1 SOL
|
|
346
|
-
slippageBps: 50, // 0.5%
|
|
347
|
-
});
|
|
348
|
-
|
|
349
|
-
console.log('Quote:', {
|
|
350
|
-
inAmount: quote.inAmount,
|
|
351
|
-
outAmount: quote.outAmount,
|
|
352
|
-
priceImpact: quote.priceImpactPct,
|
|
353
|
-
});
|
|
354
|
-
|
|
355
|
-
// Jito MEV protection
|
|
356
|
-
const jito = new JitoIntegration(client);
|
|
357
|
-
const tipAccount = jito.getTipAccount('ny'); // New York region
|
|
358
|
-
const bundle = await jito.submitBundle({
|
|
359
|
-
transactions: [signedTxBase64],
|
|
360
|
-
tipLamports: 1_000_000, // 0.001 SOL
|
|
361
|
-
});
|
|
362
|
-
|
|
363
|
-
console.log('Bundle ID:', bundle.bundleId);
|
|
364
|
-
|
|
365
|
-
// Token data
|
|
366
|
-
const tokenData = new TokenDataIntegration(client);
|
|
367
|
-
const tokens = await tokenData.getTokenAccountsByOwner('YourWalletAddress');
|
|
368
|
-
console.log('Token accounts:', tokens.length);
|
|
113
|
+
SynapseClient
|
|
114
|
+
|
|
|
115
|
+
|-- .rpc SolanaRpc 53 JSON-RPC methods (lazy-loaded)
|
|
116
|
+
|-- .das DasClient 11 DAS/Metaplex Read API methods
|
|
117
|
+
|-- .ws WsClient WebSocket PubSub subscriptions
|
|
118
|
+
|-- .grpc GrpcTransport gRPC unary calls + Geyser parser
|
|
119
|
+
|
|
|
120
|
+
|-- call() Raw JSON-RPC call
|
|
121
|
+
|-- batch() Batched JSON-RPC calls
|
|
122
|
+
|-- destroy() Tear down all connections
|
|
369
123
|
```
|
|
370
124
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
---
|
|
374
|
-
|
|
375
|
-
### 4. NFT Module
|
|
376
|
-
|
|
377
|
-
**Location:** [`src/nft/`](./src/nft/README.md)
|
|
378
|
-
|
|
379
|
-
Complete NFT toolkit for Solana with AI-powered features.
|
|
380
|
-
|
|
381
|
-
#### Features Matrix
|
|
382
|
-
|
|
383
|
-
| Feature | Description | Data Sources |
|
|
384
|
-
|---------|-------------|--------------|
|
|
385
|
-
| **Metadata Fetching** | NFT metadata parsing and validation | On-chain + Arweave/IPFS |
|
|
386
|
-
| **Rarity Calculation** | Statistical rarity scoring algorithms | Collection traits |
|
|
387
|
-
| **Collection Analytics** | Floor price, volume, trends | Magic Eden, Tensor, Solanart |
|
|
388
|
-
| **Marketplace Aggregation** | Multi-marketplace listing aggregation | 5+ marketplaces |
|
|
389
|
-
| **AI Recommendations** | ML-powered investment suggestions | Historical data + ML models |
|
|
125
|
+
Sub-clients are initialized on first property access.
|
|
126
|
+
If you never touch `client.grpc`, the gRPC module is never loaded.
|
|
390
127
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
```typescript
|
|
394
|
-
import { NFTEngine, CollectionAnalytics, AIRarityCalculator } from '@synapse/client-sdk/nft';
|
|
395
|
-
|
|
396
|
-
// Basic NFT operations
|
|
397
|
-
const nft = new NFTEngine(client);
|
|
398
|
-
const metadata = await nft.getNFTMetadata('mintAddress');
|
|
399
|
-
console.log('NFT Name:', metadata.name);
|
|
400
|
-
console.log('Attributes:', metadata.attributes);
|
|
401
|
-
|
|
402
|
-
// Collection analytics
|
|
403
|
-
const analytics = new CollectionAnalytics(client);
|
|
404
|
-
const stats = await analytics.getCollectionStats('collectionMint');
|
|
405
|
-
console.log('Floor price:', stats.floorPrice, 'SOL');
|
|
406
|
-
console.log('24h volume:', stats.volume24h, 'SOL');
|
|
407
|
-
console.log('Unique holders:', stats.uniqueHolders);
|
|
408
|
-
|
|
409
|
-
// AI rarity calculation
|
|
410
|
-
const rarityCalc = new AIRarityCalculator(client);
|
|
411
|
-
const rarity = await rarityCalc.calculateRarity(metadata, 'collectionMint');
|
|
412
|
-
console.log('Rarity score:', rarity.score);
|
|
413
|
-
console.log('Rarity rank:', `${rarity.rank}/${rarity.totalSupply}`);
|
|
414
|
-
console.log('Rarity tier:', rarity.tier); // 'common', 'rare', 'legendary', etc.
|
|
415
|
-
```
|
|
416
|
-
|
|
417
|
-
**[Read Full Documentation →](./src/nft/README.md)**
|
|
128
|
+
All I/O flows through `HttpTransport` (`src/core/transport.ts`), which handles
|
|
129
|
+
JSON-RPC framing, timeout, abort signals, and batch aggregation.
|
|
418
130
|
|
|
419
131
|
---
|
|
420
132
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
|
430
|
-
|
|
431
|
-
|
|
|
432
|
-
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
133
|
+
## Module Reference
|
|
134
|
+
|
|
135
|
+
### core/
|
|
136
|
+
|
|
137
|
+
Foundation layer. No external dependencies.
|
|
138
|
+
|
|
139
|
+
| File | Purpose |
|
|
140
|
+
|------|---------|
|
|
141
|
+
| `src/core/types.ts` | Branded primitive types: `Pubkey`, `Signature`, `Slot`, `Epoch`, `Lamports`, `UnixTimestamp`. RPC wire types, account shapes, transaction metadata, validator info, token amounts, filter types. |
|
|
142
|
+
| `src/core/errors.ts` | Error hierarchy: `SynapseError` (base), `NetworkError`, `TimeoutError`, `RpcMethodNotFoundError`, `UpstreamError`. |
|
|
143
|
+
| `src/core/transport.ts` | `HttpTransport` class -- JSON-RPC HTTP transport. `request()` for single calls, `batch()` for aggregated calls. |
|
|
144
|
+
| `src/core/client.ts` | `SynapseClient` class -- top-level orchestrator. Lazy getters for `.rpc`, `.das`, `.ws`, `.grpc`. Static `fromEndpoint()` factory. |
|
|
145
|
+
|
|
146
|
+
### rpc/
|
|
147
|
+
|
|
148
|
+
53 Solana JSON-RPC methods. Each method lives in its own file under `src/rpc/methods/` for tree-shaking.
|
|
149
|
+
|
|
150
|
+
| File | Purpose |
|
|
151
|
+
|------|---------|
|
|
152
|
+
| `src/rpc/solana-rpc.ts` | `SolanaRpc` facade class. Delegates to standalone functions. |
|
|
153
|
+
| `src/rpc/methods/*.ts` | One file per RPC method. Each exports a typed async function and optional `Opts` interface. |
|
|
154
|
+
| `src/rpc/methods/index.ts` | Barrel re-export. |
|
|
155
|
+
|
|
156
|
+
Method categories:
|
|
157
|
+
|
|
158
|
+
| Category | Methods |
|
|
159
|
+
|----------|---------|
|
|
160
|
+
| Account | `getAccountInfo`, `getBalance`, `getMultipleAccounts`, `getProgramAccounts` |
|
|
161
|
+
| Block | `getBlock`, `getBlockHeight`, `getBlockTime`, `getBlockProduction`, `getBlocks`, `getBlocksWithLimit`, `getBlockCommitment` |
|
|
162
|
+
| Transaction | `getTransaction`, `getSignaturesForAddress`, `getSignatureStatuses`, `sendTransaction`, `simulateTransaction`, `requestAirdrop` |
|
|
163
|
+
| Blockhash | `getLatestBlockhash`, `isBlockhashValid` |
|
|
164
|
+
| Cluster / Epoch | `getSlot`, `getSlotLeader`, `getSlotLeaders`, `getEpochInfo`, `getEpochSchedule`, `getInflationGovernor`, `getInflationRate`, `getInflationReward`, `getVoteAccounts`, `getClusterNodes`, `getSupply`, `getRecentPerformanceSamples`, `getHealth`, `getVersion`, `getGenesisHash`, `getIdentity`, `getMinimumBalanceForRentExemption`, `minimumLedgerSlot`, `getFirstAvailableBlock`, `getHighestSnapshotSlot`, `getLeaderSchedule`, `getMaxRetransmitSlot`, `getMaxShredInsertSlot`, `getTransactionCount`, `getStakeMinimumDelegation`, `getRecentPrioritizationFees` |
|
|
165
|
+
| Token | `getTokenAccountBalance`, `getTokenAccountsByOwner`, `getTokenAccountsByDelegate`, `getTokenLargestAccounts`, `getTokenSupply`, `getLargestAccounts`, `getStakeActivation` (deprecated), `getFeeForMessage` |
|
|
166
|
+
|
|
167
|
+
### das/
|
|
168
|
+
|
|
169
|
+
11 DAS (Digital Asset Standard) methods for NFT/cNFT via the Metaplex Read API.
|
|
170
|
+
|
|
171
|
+
| File | Purpose |
|
|
172
|
+
|------|---------|
|
|
173
|
+
| `src/das/types.ts` | DAS type definitions: `DasAsset`, `DasContent`, `DasCompression`, `DasOwnership`, `DasProof`, `DasPage`, `DasSearchParams`, and 10+ supporting interfaces. |
|
|
174
|
+
| `src/das/client.ts` | `DasClient` facade class. |
|
|
175
|
+
| `src/das/methods/*.ts` | `getAsset`, `getAssetProof`, `getAssetBatch`, `getAssetProofBatch`, `getAssetsByOwner`, `getAssetsByGroup`, `getAssetsByCreator`, `getAssetsByAuthority`, `searchAssets`, `getSignaturesForAsset`, `getTokenAccounts`. |
|
|
176
|
+
|
|
177
|
+
### websocket/
|
|
178
|
+
|
|
179
|
+
Real-time Solana PubSub over WebSocket.
|
|
180
|
+
|
|
181
|
+
| File | Purpose |
|
|
182
|
+
|------|---------|
|
|
183
|
+
| `src/websocket/types.ts` | `WsConfig`, subscription parameter interfaces, notification types, `WsNotification` union. |
|
|
184
|
+
| `src/websocket/client.ts` | `WsClient` class. Methods: `onAccountChange`, `onProgramAccountChange`, `onLogs`, `onSignature`, `onSlotChange`, `onRootChange`, `unsubscribe`, `close`. |
|
|
185
|
+
|
|
186
|
+
### grpc/
|
|
187
|
+
|
|
188
|
+
Optional gRPC transport and Geyser streaming parser.
|
|
189
|
+
Requires `@grpc/grpc-js` and `@grpc/proto-loader` as optional peer dependencies.
|
|
190
|
+
|
|
191
|
+
| File | Purpose |
|
|
192
|
+
|------|---------|
|
|
193
|
+
| `src/grpc/types.ts` | `GrpcTransportConfig`, `GrpcCallOptions`, `UnaryMethod`. |
|
|
194
|
+
| `src/grpc/transport.ts` | `GrpcTransport` class. Lazy proto loading, service resolution, typed unary calls. |
|
|
195
|
+
| `src/grpc/parser/types.ts` | Raw Geyser gRPC protobuf shapes and parsed output types (20+ interfaces). |
|
|
196
|
+
| `src/grpc/parser/programs.ts` | Known-program registry (80+ programs). `resolveProgram`, `resolveProgramBatch`, `isProgramInCategory`. |
|
|
197
|
+
| `src/grpc/parser/decoder.ts` | Low-level decoders: `decodeTransaction`, `decodeAccountUpdate`, `decodeSlotUpdate`, `decodeBlockMeta`, `decodeEntry`, and balance/token-balance diff utilities. |
|
|
198
|
+
| `src/grpc/parser/geyser-parser.ts` | `GeyserParser` class. High-level stream parsing with event emitter, statistics tracking, batch processing, and configurable filters (skip votes, skip zero balances). |
|
|
199
|
+
|
|
200
|
+
### ai/
|
|
201
|
+
|
|
202
|
+
AI agent commerce layer. Zod schemas, LangChain tools, protocol integrations, gateway, x402.
|
|
203
|
+
|
|
204
|
+
| File | Purpose |
|
|
205
|
+
|------|---------|
|
|
206
|
+
| `src/ai/tools/zod/types.ts` | `AgentMethodDef` interface -- Zod input/output schema pair. |
|
|
207
|
+
| `src/ai/tools/zod/index.ts` | `agentRpcMethods` registry (53 method schemas) and `createExecutableSolanaTools()` factory. |
|
|
208
|
+
| `src/ai/tools/protocols/shared.ts` | `ProtocolHttpClient`, `createMethodRegistry`, `buildProtocolTools` -- shared protocol infrastructure. |
|
|
209
|
+
| `src/ai/tools/protocols/jupiter/` | Jupiter DEX: 21 methods (swap, quote, route, limit orders, DCA, token list, price). Schemas in `schemas.ts`, tool factory in `tools.ts`. |
|
|
210
|
+
| `src/ai/tools/protocols/raydium/` | Raydium DEX: 16 methods (pools, liquidity, farming, swaps, CLMM). |
|
|
211
|
+
| `src/ai/tools/protocols/metaplex/` | Metaplex NFT: 12 methods (DAS queries, resolve collection). |
|
|
212
|
+
| `src/ai/tools/protocols/index.ts` | `createProtocolTools()` super-factory -- creates all protocol toolkits in one call. |
|
|
213
|
+
| `src/ai/gateway/types.ts` | Gateway type definitions: `PaymentIntent`, `PricingTier`, `ToolListing`, `SessionReceipt`, events. |
|
|
214
|
+
| `src/ai/gateway/session.ts` | `AgentSession` -- budget tracking, rate limiting, TTL enforcement, call counting. |
|
|
215
|
+
| `src/ai/gateway/pricing.ts` | `PricingEngine` -- tier resolution, dynamic congestion pricing, bundle discounts. |
|
|
216
|
+
| `src/ai/gateway/validator.ts` | `ResponseValidator` -- SHA-256 attestation, integrity verification, attestation log. |
|
|
217
|
+
| `src/ai/gateway/marketplace.ts` | `ToolMarketplace` -- listing, search, filtering, reputation scoring, bundle registry. |
|
|
218
|
+
| `src/ai/gateway/index.ts` | `AgentGateway` class -- session lifecycle, execution pipeline, settlement, event system. |
|
|
219
|
+
| `src/ai/gateway/x402/types.ts` | x402 protocol types: `PaymentRequirements`, `PaymentPayload`, `SettlementResult`, network constants. |
|
|
220
|
+
| `src/ai/gateway/x402/paywall.ts` | `X402Paywall` -- seller-side HTTP 402 middleware. |
|
|
221
|
+
| `src/ai/gateway/x402/client.ts` | `X402BuyerClient` -- buyer-side payment header construction. |
|
|
222
|
+
| `src/ai/gateway/x402/facilitator.ts` | `FacilitatorClient` -- on-chain settlement verification. |
|
|
223
|
+
| `src/ai/gateway/x402/registry.ts` | `FACILITATOR_REGISTRY` -- pre-configured endpoints for known facilitators (PayAI, Dexter, RelAI, CDP). |
|
|
224
|
+
|
|
225
|
+
### utils/
|
|
226
|
+
|
|
227
|
+
| File | Purpose |
|
|
228
|
+
|------|---------|
|
|
229
|
+
| `src/utils/helpers.ts` | `lamportsToSol`, `solToLamports`, `isValidPubkey`, `isValidSignature`, `sleep`, `chunk`, `retry`. |
|
|
230
|
+
| `src/utils/synapse.ts` | `SynapseNetwork`, `SynapseRegion` enums, `resolveEndpoint`, `probeLatency`, `autoSelectRegion`, pre-resolved constants (`SYNAPSE_MAINNET_US`, etc.). |
|
|
465
231
|
|
|
466
232
|
---
|
|
467
233
|
|
|
468
|
-
|
|
234
|
+
## Endpoints and Regions
|
|
469
235
|
|
|
470
|
-
|
|
236
|
+
The SDK ships with a typed endpoint registry. Each endpoint includes `rpc`, `wss`, and `grpc` URLs.
|
|
471
237
|
|
|
472
|
-
|
|
238
|
+
```ts
|
|
239
|
+
import {
|
|
240
|
+
SynapseNetwork,
|
|
241
|
+
SynapseRegion,
|
|
242
|
+
resolveEndpoint,
|
|
243
|
+
autoSelectRegion,
|
|
244
|
+
} from '@oobe-protocol-labs/synapse-client-sdk';
|
|
473
245
|
|
|
474
|
-
|
|
246
|
+
// Explicit resolution
|
|
247
|
+
const ep = resolveEndpoint(SynapseNetwork.Mainnet, SynapseRegion.EU);
|
|
248
|
+
// ep.rpc -> 'https://mainnet.eu.synapse.com'
|
|
249
|
+
// ep.wss -> 'wss://mainnet.eu.synapse.com/ws'
|
|
250
|
+
// ep.grpc -> 'https://mainnet.eu.synapse.com:443'
|
|
475
251
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
| **Anomalies** | Spike detection, degradation alerts, pattern changes | Statistical anomaly detection |
|
|
481
|
-
| **Optimization** | Bottleneck identification, resource recommendations | Rule-based + ML insights |
|
|
252
|
+
// Latency-based auto-selection
|
|
253
|
+
const best = await autoSelectRegion(SynapseNetwork.Mainnet);
|
|
254
|
+
console.log(best.region, best.latencyMs);
|
|
255
|
+
```
|
|
482
256
|
|
|
483
|
-
|
|
257
|
+
Available combinations:
|
|
484
258
|
|
|
485
|
-
|
|
486
|
-
|
|
259
|
+
| Network | Regions |
|
|
260
|
+
|---------|---------|
|
|
261
|
+
| `Mainnet` | US, EU |
|
|
262
|
+
| `Devnet` | US, EU |
|
|
263
|
+
| `Testnet` | US, EU |
|
|
487
264
|
|
|
488
|
-
|
|
489
|
-
enablePredictions: true,
|
|
490
|
-
enableAnomalyDetection: true,
|
|
491
|
-
enableTrendAnalysis: true,
|
|
492
|
-
sampleRate: 0.1, // 10% sampling
|
|
493
|
-
retentionDays: 7,
|
|
494
|
-
alertThresholds: {
|
|
495
|
-
errorRate: 0.05, // 5%
|
|
496
|
-
latency: 1000, // 1s
|
|
497
|
-
volumeSpike: 5, // 5x normal
|
|
498
|
-
},
|
|
499
|
-
});
|
|
265
|
+
---
|
|
500
266
|
|
|
501
|
-
|
|
502
|
-
analytics.recordMetrics({
|
|
503
|
-
timestamp: Date.now(),
|
|
504
|
-
requests: 1000,
|
|
505
|
-
errors: 10,
|
|
506
|
-
latency: 150,
|
|
507
|
-
throughput: 200,
|
|
508
|
-
activeUsers: 50,
|
|
509
|
-
gasUsed: 1_000_000,
|
|
510
|
-
blockHeight: 250_000_000,
|
|
511
|
-
});
|
|
267
|
+
## Branded Types
|
|
512
268
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
predictions.forEach(pred => {
|
|
516
|
-
console.log(`${pred.metric} prediction:`, {
|
|
517
|
-
current: pred.currentValue,
|
|
518
|
-
predicted: pred.predictedValue,
|
|
519
|
-
confidence: (pred.confidence * 100).toFixed(1) + '%',
|
|
520
|
-
trend: pred.trend,
|
|
521
|
-
});
|
|
522
|
-
});
|
|
269
|
+
The SDK uses branded types for compile-time safety. Primitive values are
|
|
270
|
+
wrapped at construction and the brand is erased at runtime (zero overhead).
|
|
523
271
|
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
anomalies.forEach(anomaly => {
|
|
527
|
-
console.log(`Anomaly detected: ${anomaly.metric}`, {
|
|
528
|
-
value: anomaly.value,
|
|
529
|
-
severity: anomaly.severity,
|
|
530
|
-
description: anomaly.description,
|
|
531
|
-
});
|
|
532
|
-
});
|
|
272
|
+
```ts
|
|
273
|
+
import { Pubkey, Signature, Slot, Lamports } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
533
274
|
|
|
534
|
-
//
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
console.log(`Expected impact: ${suggestion.impact}`);
|
|
539
|
-
});
|
|
275
|
+
const pk = Pubkey('So11111111111111111111111111111111'); // branded string
|
|
276
|
+
const sig = Signature('5vR3z...'); // branded string
|
|
277
|
+
const slot = Slot(12345678); // branded number
|
|
278
|
+
const lam = Lamports(1_000_000_000); // branded number
|
|
540
279
|
```
|
|
541
280
|
|
|
542
|
-
|
|
281
|
+
Passing a raw `string` where `Pubkey` is expected is a compile-time error.
|
|
543
282
|
|
|
544
283
|
---
|
|
545
284
|
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
**Location:** [`src/methods/`](./src/methods/README.md)
|
|
285
|
+
## AI Agent Integration
|
|
549
286
|
|
|
550
|
-
|
|
287
|
+
### Zod Schemas and LangChain Tools
|
|
551
288
|
|
|
552
|
-
|
|
289
|
+
Every RPC method has a corresponding Zod input/output schema. These schemas
|
|
290
|
+
are used to generate LangChain `DynamicStructuredTool` instances:
|
|
553
291
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
| **Account** | getAccountInfo, getBalance, getMultipleAccounts, getProgramAccounts | Account data retrieval |
|
|
557
|
-
| **Block** | getBlock, getBlockHeight, getBlockTime, getBlocks, getBlockCommitment | Block information |
|
|
558
|
-
| **Transaction** | getTransaction, getSignatureStatuses, sendTransaction, simulateTransaction | Transaction operations |
|
|
559
|
-
| **Network** | getClusterNodes, getEpochInfo, getVersion, getHealth | Network status |
|
|
560
|
-
| **Token** | getTokenAccountBalance, getTokenSupply, getTokenAccountsByOwner, getTokenLargestAccounts | SPL Token operations |
|
|
292
|
+
```ts
|
|
293
|
+
import { createExecutableSolanaTools } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
561
294
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
295
|
+
const transport = new HttpTransport({ endpoint: '...' });
|
|
296
|
+
const { tools, toolMap } = createExecutableSolanaTools(transport);
|
|
297
|
+
// tools: DynamicStructuredTool[] (53 tools, prefixed "solana_")
|
|
298
|
+
// toolMap: Map<string, DynamicStructuredTool>
|
|
299
|
+
```
|
|
566
300
|
|
|
567
|
-
|
|
301
|
+
Options:
|
|
302
|
+
- `prefix` -- custom tool name prefix (default: `"solana_"`)
|
|
303
|
+
- `include` -- whitelist of method names
|
|
304
|
+
- `exclude` -- blacklist of method names
|
|
568
305
|
|
|
569
|
-
|
|
570
|
-
const accountInfo = await rpc.getAccountInfo('address', {
|
|
571
|
-
encoding: 'jsonParsed',
|
|
572
|
-
commitment: 'confirmed',
|
|
573
|
-
});
|
|
306
|
+
### Protocol Tools
|
|
574
307
|
|
|
575
|
-
|
|
576
|
-
console.log('Balance:', balance / 1e9, 'SOL');
|
|
308
|
+
49 additional tools for on-chain protocols:
|
|
577
309
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
const block = await rpc.getBlock(blockHeight, {
|
|
581
|
-
encoding: 'jsonParsed',
|
|
582
|
-
transactionDetails: 'full',
|
|
583
|
-
rewards: true,
|
|
584
|
-
maxSupportedTransactionVersion: 0,
|
|
585
|
-
});
|
|
310
|
+
```ts
|
|
311
|
+
import { createProtocolTools } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
586
312
|
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
maxRetries: 3,
|
|
313
|
+
const { jupiter, raydium, metaplex, allTools } = createProtocolTools({
|
|
314
|
+
jupiter: { apiKey: '...' },
|
|
315
|
+
raydium: true,
|
|
316
|
+
metaplex: { transport },
|
|
592
317
|
});
|
|
593
|
-
|
|
594
|
-
const statuses = await rpc.getSignatureStatuses([signature]);
|
|
595
|
-
console.log('Transaction status:', statuses[0]);
|
|
596
|
-
|
|
597
|
-
// Token methods
|
|
598
|
-
const tokenAccounts = await rpc.getTokenAccountsByOwner(
|
|
599
|
-
'ownerAddress',
|
|
600
|
-
{ programId: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA' },
|
|
601
|
-
{ encoding: 'jsonParsed' }
|
|
602
|
-
);
|
|
603
|
-
|
|
604
|
-
const tokenSupply = await rpc.getTokenSupply('mintAddress');
|
|
605
|
-
console.log('Total supply:', tokenSupply.value.uiAmount);
|
|
318
|
+
// allTools: DynamicStructuredTool[] (49 tools)
|
|
606
319
|
```
|
|
607
320
|
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
321
|
+
| Protocol | Tool Count | Categories |
|
|
322
|
+
|----------|-----------|------------|
|
|
323
|
+
| Jupiter | 21 | Ultra Swap, Metis Swap, Quote, Route, Limit Orders, DCA, Token List, Price API |
|
|
324
|
+
| Raydium | 16 | Pools, Liquidity, Farming, Swaps, CLMM Positions, Token Info |
|
|
325
|
+
| Metaplex | 12 | DAS Queries (asset, proof, owner, group, creator, authority, search), Resolve Collection |
|
|
613
326
|
|
|
614
|
-
|
|
327
|
+
### Agent Commerce Gateway
|
|
615
328
|
|
|
616
|
-
|
|
329
|
+
Session-based metering and payment infrastructure for monetized AI tool access:
|
|
617
330
|
|
|
618
|
-
|
|
331
|
+
```ts
|
|
332
|
+
import { AgentGateway, createAgentGateway } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
619
333
|
|
|
620
|
-
|
|
621
|
-
// Constants
|
|
622
|
-
import { SynapseConstants } from '@synapse/client-sdk/utils';
|
|
334
|
+
const gw = createAgentGateway({ transport, seller: Pubkey('...') });
|
|
623
335
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
336
|
+
const session = await gw.openSession(paymentIntent);
|
|
337
|
+
const result = await gw.execute(session.id, 'getBalance', [pubkey]);
|
|
338
|
+
const receipt = await gw.settleSession(session.id);
|
|
339
|
+
```
|
|
627
340
|
|
|
628
|
-
|
|
629
|
-
|
|
341
|
+
Components:
|
|
342
|
+
- `AgentSession` -- budget tracking, rate limiting, TTL enforcement
|
|
343
|
+
- `PricingEngine` -- tier resolution, dynamic pricing, bundle discounts
|
|
344
|
+
- `ResponseValidator` -- SHA-256 attestation, integrity proofs
|
|
345
|
+
- `ToolMarketplace` -- listing, discovery, reputation scoring
|
|
630
346
|
|
|
631
|
-
|
|
632
|
-
const sol = SynapseUtils.lamportsToSol(1_000_000_000);
|
|
633
|
-
console.log('Amount:', sol, 'SOL'); // 1 SOL
|
|
347
|
+
### x402 Payment Protocol
|
|
634
348
|
|
|
635
|
-
|
|
636
|
-
const lamports = SynapseUtils.solToLamports(1.5);
|
|
637
|
-
console.log('Lamports:', lamports); // 1500000000
|
|
349
|
+
Native HTTP 402 payment flow (v1/v2):
|
|
638
350
|
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
351
|
+
```ts
|
|
352
|
+
// Seller side
|
|
353
|
+
import { X402Paywall } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
354
|
+
const paywall = new X402Paywall(config);
|
|
355
|
+
const result = await paywall.processRequest(request);
|
|
642
356
|
|
|
643
|
-
//
|
|
644
|
-
|
|
645
|
-
|
|
357
|
+
// Buyer side
|
|
358
|
+
import { X402BuyerClient } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
359
|
+
const buyer = new X402BuyerClient(config);
|
|
360
|
+
const response = await buyer.payAndRetry(url, options);
|
|
646
361
|
```
|
|
647
362
|
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
---
|
|
651
|
-
|
|
652
|
-
## Performance Benchmarks
|
|
653
|
-
|
|
654
|
-
### Latency Metrics
|
|
655
|
-
|
|
656
|
-
| Operation | P50 | P95 | P99 | Throughput |
|
|
657
|
-
|-----------|-----|-----|-----|------------|
|
|
658
|
-
| Single RPC call (cached) | <1ms | <2ms | <5ms | 1M req/s |
|
|
659
|
-
| Single RPC call (uncached) | 8ms | 15ms | 25ms | 10k req/s |
|
|
660
|
-
| Batch RPC call (10 calls) | 25ms | 45ms | 80ms | 5k batch/s |
|
|
661
|
-
| WebSocket message delivery | <1ms | <3ms | <10ms | 100k msg/s |
|
|
662
|
-
| Cache hit (L1) | <0.5ms | <1ms | <2ms | 1M ops/s |
|
|
663
|
-
| Cache hit (L2) | <1ms | <2ms | <5ms | 500k ops/s |
|
|
664
|
-
| Cache hit (L3 Redis) | 2ms | 8ms | 15ms | 50k ops/s |
|
|
665
|
-
| Jupiter swap quote | 150ms | 250ms | 400ms | 500 req/s |
|
|
666
|
-
| NFT metadata fetch (cached) | 5ms | 15ms | 30ms | 10k req/s |
|
|
667
|
-
| Circuit breaker overhead | <0.1ms | <0.5ms | <1ms | 1M ops/s |
|
|
363
|
+
Known facilitator registry:
|
|
668
364
|
|
|
669
|
-
|
|
365
|
+
```ts
|
|
366
|
+
import {
|
|
367
|
+
KnownFacilitator,
|
|
368
|
+
resolveKnownFacilitator,
|
|
369
|
+
findFacilitatorsByNetwork,
|
|
370
|
+
} from '@oobe-protocol-labs/synapse-client-sdk';
|
|
670
371
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
- Duration: 5 minutes
|
|
674
|
-
- Concurrent users: 1000
|
|
675
|
-
- RPC endpoints: 3 (load balanced)
|
|
676
|
-
- Operations: Mixed (50% reads, 30% writes, 20% batch)
|
|
677
|
-
|
|
678
|
-
Results:
|
|
679
|
-
✓ Total requests: 3,315,000
|
|
680
|
-
✓ Successful: 3,312,450 (99.92%)
|
|
681
|
-
✓ Failed: 2,550 (0.08%)
|
|
682
|
-
✓ Average RPS: 11,050
|
|
683
|
-
✓ Peak RPS: 15,230
|
|
684
|
-
✓ Average latency: 12.5ms
|
|
685
|
-
✓ P95 latency: 28ms
|
|
686
|
-
✓ P99 latency: 45ms
|
|
687
|
-
✓ Cache hit rate: 94.3%
|
|
688
|
-
✓ Circuit breaker trips: 3
|
|
689
|
-
✓ Endpoint failovers: 12
|
|
372
|
+
const config = resolveKnownFacilitator(KnownFacilitator.PayAI);
|
|
373
|
+
const solanaFacilitators = findFacilitatorsByNetwork('solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp');
|
|
690
374
|
```
|
|
691
375
|
|
|
692
376
|
---
|
|
693
377
|
|
|
694
|
-
##
|
|
695
|
-
|
|
696
|
-
### Core Types
|
|
378
|
+
## Testing
|
|
697
379
|
|
|
698
|
-
|
|
699
|
-
// Client configuration
|
|
700
|
-
export interface SynapseConfig {
|
|
701
|
-
endpoint: string | string[];
|
|
702
|
-
apiKey?: string;
|
|
703
|
-
timeout?: number;
|
|
704
|
-
debug?: boolean;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
// RPC request/response
|
|
708
|
-
export interface RpcRequest {
|
|
709
|
-
jsonrpc: '2.0';
|
|
710
|
-
id: number | string;
|
|
711
|
-
method: string;
|
|
712
|
-
params?: any[];
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
export interface RpcResponse<T = any> {
|
|
716
|
-
jsonrpc: '2.0';
|
|
717
|
-
id: number | string;
|
|
718
|
-
result?: T;
|
|
719
|
-
error?: RpcError;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
export interface RpcError {
|
|
723
|
-
code: number;
|
|
724
|
-
message: string;
|
|
725
|
-
data?: any;
|
|
726
|
-
}
|
|
380
|
+
The project uses [Vitest](https://vitest.dev/) with 378 tests across 10 suites.
|
|
727
381
|
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
|
|
732
|
-
maxSupportedTransactionVersion?: number;
|
|
733
|
-
skipPreflight?: boolean;
|
|
734
|
-
preflightCommitment?: 'processed' | 'confirmed' | 'finalized';
|
|
735
|
-
}
|
|
382
|
+
```bash
|
|
383
|
+
# Run all tests
|
|
384
|
+
pnpm test
|
|
736
385
|
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
requestCount: number;
|
|
740
|
-
errorCount: number;
|
|
741
|
-
averageLatency: number;
|
|
742
|
-
cacheHitRate: number;
|
|
743
|
-
uptime: number;
|
|
744
|
-
activeConnections: number;
|
|
745
|
-
pendingRequests: number;
|
|
746
|
-
}
|
|
386
|
+
# Watch mode
|
|
387
|
+
pnpm test:watch
|
|
747
388
|
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
lamports: number;
|
|
751
|
-
owner: string;
|
|
752
|
-
data: Buffer | string | any;
|
|
753
|
-
executable: boolean;
|
|
754
|
-
rentEpoch: number;
|
|
755
|
-
}
|
|
389
|
+
# Coverage
|
|
390
|
+
pnpm test:coverage
|
|
756
391
|
```
|
|
757
392
|
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
```typescript
|
|
761
|
-
export class SynapseError extends Error {
|
|
762
|
-
constructor(
|
|
763
|
-
message: string,
|
|
764
|
-
public code?: number,
|
|
765
|
-
public data?: any
|
|
766
|
-
) {
|
|
767
|
-
super(message);
|
|
768
|
-
this.name = 'SynapseError';
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
export class NetworkError extends SynapseError {
|
|
773
|
-
constructor(
|
|
774
|
-
message: string,
|
|
775
|
-
public statusCode?: number
|
|
776
|
-
) {
|
|
777
|
-
super(message, -32000);
|
|
778
|
-
this.name = 'NetworkError';
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
export class TimeoutError extends SynapseError {
|
|
783
|
-
constructor(message: string) {
|
|
784
|
-
super(message, -32001);
|
|
785
|
-
this.name = 'TimeoutError';
|
|
786
|
-
}
|
|
787
|
-
}
|
|
393
|
+
Test suites:
|
|
788
394
|
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
super(message, -32003);
|
|
802
|
-
this.name = 'CircuitBreakerError';
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
```
|
|
395
|
+
| Suite | File | Covers |
|
|
396
|
+
|-------|------|--------|
|
|
397
|
+
| Endpoints | `tests/utils/endpoints.test.ts` | Network/region resolution, auto-select, constants |
|
|
398
|
+
| gRPC Parser | `tests/grpc/parser.test.ts` | Decoders, program registry, GeyserParser class |
|
|
399
|
+
| Session | `tests/ai/session.test.ts` | Budget, rate limits, TTL, pause/resume, events |
|
|
400
|
+
| Gateway | `tests/ai/gateway.test.ts` | Full session lifecycle, execute, settle, metrics |
|
|
401
|
+
| x402 | `tests/ai/x402.test.ts` | Paywall, facilitator, registry, header encoding |
|
|
402
|
+
| Validator | `tests/ai/validator.test.ts` | Attestation, integrity, signature verification |
|
|
403
|
+
| Marketplace | `tests/ai/marketplace.test.ts` | Listing, search, reputation, bundles |
|
|
404
|
+
| Pricing | `tests/ai/pricing.test.ts` | Tiers, dynamic pricing, cost estimation |
|
|
405
|
+
| Protocols | `tests/ai/protocols.test.ts` | Jupiter/Raydium/Metaplex schemas and tools |
|
|
406
|
+
| Tools | `tests/ai/tools.test.ts` | Zod registry, executable tool creation, execution |
|
|
806
407
|
|
|
807
408
|
---
|
|
808
409
|
|
|
809
|
-
##
|
|
810
|
-
|
|
811
|
-
### 1. Connection Management
|
|
812
|
-
|
|
813
|
-
```typescript
|
|
814
|
-
// ✅ Recommended: Singleton pattern
|
|
815
|
-
class SynapseService {
|
|
816
|
-
private static instance: SynapseClient;
|
|
817
|
-
|
|
818
|
-
static getInstance(): SynapseClient {
|
|
819
|
-
if (!this.instance) {
|
|
820
|
-
this.instance = new SynapseClient({
|
|
821
|
-
endpoint: process.env.SYNAPSE_ENDPOINT!,
|
|
822
|
-
apiKey: process.env.SYNAPSE_API_KEY,
|
|
823
|
-
timeout: 30000,
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
return this.instance;
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
// Usage
|
|
831
|
-
const client = SynapseService.getInstance();
|
|
832
|
-
|
|
833
|
-
// ❌ Not recommended: New client per request
|
|
834
|
-
function getBalance(address: string) {
|
|
835
|
-
const client = new SynapseClient({ endpoint: '...' }); // Avoid this
|
|
836
|
-
return client.call('getBalance', [address]);
|
|
837
|
-
}
|
|
838
|
-
```
|
|
839
|
-
|
|
840
|
-
### 2. Error Handling
|
|
841
|
-
|
|
842
|
-
```typescript
|
|
843
|
-
import { SynapseError, NetworkError, TimeoutError } from '@synapse/client-sdk';
|
|
844
|
-
|
|
845
|
-
async function robustRpcCall<T>(
|
|
846
|
-
method: string,
|
|
847
|
-
params: any[],
|
|
848
|
-
maxRetries: number = 3
|
|
849
|
-
): Promise<T> {
|
|
850
|
-
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
|
851
|
-
try {
|
|
852
|
-
return await client.call<T>(method, params);
|
|
853
|
-
} catch (error) {
|
|
854
|
-
if (error instanceof TimeoutError) {
|
|
855
|
-
console.warn(`Timeout on attempt ${attempt}/${maxRetries}`);
|
|
856
|
-
if (attempt === maxRetries) throw error;
|
|
857
|
-
await sleep(1000 * attempt); // Exponential backoff
|
|
858
|
-
} else if (error instanceof NetworkError) {
|
|
859
|
-
console.error('Network error:', error.statusCode, error.message);
|
|
860
|
-
if (attempt === maxRetries) throw error;
|
|
861
|
-
await sleep(2000 * attempt);
|
|
862
|
-
} else if (error instanceof SynapseError) {
|
|
863
|
-
console.error('RPC error:', error.code, error.message);
|
|
864
|
-
throw error; // Don't retry RPC errors
|
|
865
|
-
} else {
|
|
866
|
-
throw error; // Unknown error
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
throw new Error('Max retries exceeded');
|
|
871
|
-
}
|
|
872
|
-
```
|
|
873
|
-
|
|
874
|
-
### 3. Batch Operations
|
|
875
|
-
|
|
876
|
-
```typescript
|
|
877
|
-
// ✅ Efficient: Batch related calls
|
|
878
|
-
const [balance1, balance2, balance3, accountInfo] = await Promise.all([
|
|
879
|
-
client.call('getBalance', ['address1']),
|
|
880
|
-
client.call('getBalance', ['address2']),
|
|
881
|
-
client.call('getBalance', ['address3']),
|
|
882
|
-
client.call('getAccountInfo', ['address4']),
|
|
883
|
-
]);
|
|
884
|
-
|
|
885
|
-
// Or use batch method
|
|
886
|
-
const results = await client.batch([
|
|
887
|
-
{ method: 'getBalance', params: ['address1'] },
|
|
888
|
-
{ method: 'getBalance', params: ['address2'] },
|
|
889
|
-
{ method: 'getBalance', params: ['address3'] },
|
|
890
|
-
{ method: 'getAccountInfo', params: ['address4'] },
|
|
891
|
-
]);
|
|
892
|
-
|
|
893
|
-
// ❌ Inefficient: Sequential calls
|
|
894
|
-
const balance1 = await client.call('getBalance', ['address1']);
|
|
895
|
-
const balance2 = await client.call('getBalance', ['address2']);
|
|
896
|
-
const balance3 = await client.call('getBalance', ['address3']);
|
|
897
|
-
```
|
|
898
|
-
|
|
899
|
-
### 4. Caching Strategy
|
|
410
|
+
## Build and Development
|
|
900
411
|
|
|
901
|
-
```
|
|
902
|
-
|
|
412
|
+
```bash
|
|
413
|
+
# Type-check (no emit)
|
|
414
|
+
pnpm typecheck
|
|
903
415
|
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
enableL2: true,
|
|
907
|
-
enablePredictive: true,
|
|
908
|
-
});
|
|
416
|
+
# Build CJS + ESM + docs
|
|
417
|
+
pnpm build
|
|
909
418
|
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
// Check cache first
|
|
914
|
-
const cached = await cache.get<AccountInfo>(cacheKey);
|
|
915
|
-
if (cached) return cached;
|
|
916
|
-
|
|
917
|
-
// Fetch from RPC
|
|
918
|
-
const accountInfo = await client.call<AccountInfo>('getAccountInfo', [address]);
|
|
919
|
-
|
|
920
|
-
// Store in cache with appropriate TTL
|
|
921
|
-
await cache.set(cacheKey, accountInfo, {
|
|
922
|
-
ttl: 60000, // 1 minute for account data
|
|
923
|
-
compress: true,
|
|
924
|
-
tags: [`user:${address}`],
|
|
925
|
-
});
|
|
926
|
-
|
|
927
|
-
return accountInfo;
|
|
928
|
-
}
|
|
419
|
+
# Watch mode (TypeScript)
|
|
420
|
+
pnpm dev
|
|
929
421
|
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
semi_dynamic: 300000, // 5 minutes (e.g., token prices)
|
|
934
|
-
dynamic: 60000, // 1 minute (e.g., account balances)
|
|
935
|
-
realtime: 5000, // 5 seconds (e.g., slot info)
|
|
936
|
-
};
|
|
422
|
+
# Lint
|
|
423
|
+
pnpm lint
|
|
424
|
+
pnpm lint:check
|
|
937
425
|
```
|
|
938
426
|
|
|
939
|
-
|
|
427
|
+
The build pipeline:
|
|
940
428
|
|
|
941
|
-
|
|
942
|
-
|
|
429
|
+
1. `tsc -p tsconfig.cjs.json` -- compile to `dist/cjs/` (CommonJS)
|
|
430
|
+
2. `tsc -p tsconfig.esm.json` -- compile to `dist/esm/` (ES Modules)
|
|
431
|
+
3. `scripts/fix-esm-imports.mjs` -- append `.js` extensions to ESM imports
|
|
432
|
+
4. `typedoc` -- generate API reference in `dist/docs/`
|
|
943
433
|
|
|
944
|
-
|
|
945
|
-
failureThreshold: 5,
|
|
946
|
-
timeout: 60000,
|
|
947
|
-
retryInterval: 30000,
|
|
948
|
-
enableFallback: true,
|
|
949
|
-
});
|
|
434
|
+
Output structure:
|
|
950
435
|
|
|
951
|
-
async function protectedRpcCall<T>(
|
|
952
|
-
method: string,
|
|
953
|
-
params: any[]
|
|
954
|
-
): Promise<T> {
|
|
955
|
-
return await breaker.execute(
|
|
956
|
-
// Primary operation
|
|
957
|
-
async () => {
|
|
958
|
-
return await client.call<T>(method, params);
|
|
959
|
-
},
|
|
960
|
-
// Fallback operation
|
|
961
|
-
async () => {
|
|
962
|
-
// Try cache
|
|
963
|
-
const cacheKey = `${method}:${JSON.stringify(params)}`;
|
|
964
|
-
const cached = await cache.get<T>(cacheKey, { allowStale: true });
|
|
965
|
-
|
|
966
|
-
if (cached) {
|
|
967
|
-
console.warn('Using stale cache due to circuit breaker open');
|
|
968
|
-
return cached;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
throw new CircuitBreakerError('Circuit breaker open and no fallback available');
|
|
972
|
-
}
|
|
973
|
-
);
|
|
974
|
-
}
|
|
975
436
|
```
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
// Metrics collection
|
|
981
|
-
setInterval(() => {
|
|
982
|
-
const stats = client.getStats();
|
|
983
|
-
|
|
984
|
-
// Log metrics
|
|
985
|
-
console.log('Client Metrics:', {
|
|
986
|
-
rps: (stats.requestCount / ((Date.now() - stats.uptime) / 1000)).toFixed(2),
|
|
987
|
-
errorRate: ((stats.errorCount / stats.requestCount) * 100).toFixed(2) + '%',
|
|
988
|
-
avgLatency: stats.averageLatency.toFixed(2) + 'ms',
|
|
989
|
-
cacheHitRate: (stats.cacheHitRate * 100).toFixed(2) + '%',
|
|
990
|
-
});
|
|
991
|
-
|
|
992
|
-
// Alert on anomalies
|
|
993
|
-
if (stats.averageLatency > 1000) {
|
|
994
|
-
console.warn('High latency detected:', stats.averageLatency);
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
if (stats.errorCount / stats.requestCount > 0.05) {
|
|
998
|
-
console.error('High error rate:', ((stats.errorCount / stats.requestCount) * 100).toFixed(2) + '%');
|
|
999
|
-
}
|
|
1000
|
-
}, 60000); // Every minute
|
|
1001
|
-
|
|
1002
|
-
// Event-based monitoring
|
|
1003
|
-
client.on('error', (error) => {
|
|
1004
|
-
// Send to monitoring service
|
|
1005
|
-
sendToMonitoring({
|
|
1006
|
-
type: 'rpc_error',
|
|
1007
|
-
error: error.message,
|
|
1008
|
-
code: error.code,
|
|
1009
|
-
timestamp: Date.now(),
|
|
1010
|
-
});
|
|
1011
|
-
});
|
|
1012
|
-
|
|
1013
|
-
client.on('endpoint-rotate', ({ reason }) => {
|
|
1014
|
-
// Track endpoint health
|
|
1015
|
-
metrics.increment('endpoint.rotation', { reason });
|
|
1016
|
-
});
|
|
1017
|
-
```
|
|
1018
|
-
|
|
1019
|
-
---
|
|
1020
|
-
|
|
1021
|
-
## Environment Variables
|
|
1022
|
-
|
|
1023
|
-
```bash
|
|
1024
|
-
# Required
|
|
1025
|
-
SYNAPSE_ENDPOINT=https://your-synapse-gateway.com
|
|
1026
|
-
SYNAPSE_WS_ENDPOINT=wss://your-synapse-gateway.com
|
|
1027
|
-
SYNAPSE_API_KEY=your_api_key_here
|
|
1028
|
-
|
|
1029
|
-
# Optional - Client Configuration
|
|
1030
|
-
SYNAPSE_TIMEOUT=30000
|
|
1031
|
-
SYNAPSE_DEBUG=false
|
|
1032
|
-
SYNAPSE_MAX_RETRIES=3
|
|
1033
|
-
SYNAPSE_RETRY_DELAY=1000
|
|
1034
|
-
|
|
1035
|
-
# Optional - Advanced Features
|
|
1036
|
-
SYNAPSE_ENABLE_CACHE=true
|
|
1037
|
-
SYNAPSE_CACHE_SIZE=10000
|
|
1038
|
-
SYNAPSE_ENABLE_CIRCUIT_BREAKER=true
|
|
1039
|
-
SYNAPSE_CIRCUIT_BREAKER_THRESHOLD=5
|
|
1040
|
-
|
|
1041
|
-
# Optional - WebSocket Configuration
|
|
1042
|
-
SYNAPSE_WS_AUTO_RECONNECT=true
|
|
1043
|
-
SYNAPSE_WS_MAX_RECONNECT_ATTEMPTS=10
|
|
1044
|
-
SYNAPSE_WS_RECONNECT_DELAY=5000
|
|
1045
|
-
SYNAPSE_WS_HEARTBEAT_INTERVAL=30000
|
|
1046
|
-
|
|
1047
|
-
# Optional - Redis (for L3 cache)
|
|
1048
|
-
SYNAPSE_REDIS_URL=redis://localhost:6379
|
|
1049
|
-
SYNAPSE_REDIS_PASSWORD=your_redis_password
|
|
1050
|
-
|
|
1051
|
-
# Optional - Analytics
|
|
1052
|
-
SYNAPSE_ENABLE_ANALYTICS=true
|
|
1053
|
-
SYNAPSE_ANALYTICS_SAMPLE_RATE=0.1
|
|
1054
|
-
SYNAPSE_ANALYTICS_RETENTION_DAYS=7
|
|
437
|
+
dist/
|
|
438
|
+
cjs/ CommonJS build
|
|
439
|
+
esm/ ES Module build
|
|
440
|
+
docs/ TypeDoc HTML reference
|
|
1055
441
|
```
|
|
1056
442
|
|
|
1057
443
|
---
|
|
1058
444
|
|
|
1059
|
-
##
|
|
445
|
+
## Package Exports
|
|
1060
446
|
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
| Component | Minimum | Recommended | Notes |
|
|
1064
|
-
|-----------|---------|-------------|-------|
|
|
1065
|
-
| **Node.js** | 18.0.0 | 20.x LTS | ESM support required |
|
|
1066
|
-
| **TypeScript** | 5.0.0 | 5.3.x | For development only |
|
|
1067
|
-
| **Memory** | 512MB | 2GB | Per instance |
|
|
1068
|
-
| **CPU** | 2 cores | 4+ cores | For optimal throughput |
|
|
1069
|
-
| **Network** | 10 Mbps | 100 Mbps | Stable connection |
|
|
1070
|
-
|
|
1071
|
-
### Dependencies
|
|
447
|
+
The package exposes granular entry points for consumers that need only a subset:
|
|
1072
448
|
|
|
1073
449
|
```json
|
|
1074
450
|
{
|
|
1075
|
-
"
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
"
|
|
1082
|
-
|
|
1083
|
-
"@types/node": "^20.0.0",
|
|
1084
|
-
"@types/ws": "^8.5.0"
|
|
1085
|
-
}
|
|
451
|
+
".": "Full SDK",
|
|
452
|
+
"./core": "SynapseClient class only",
|
|
453
|
+
"./core/types": "Branded types and RPC type definitions",
|
|
454
|
+
"./rpc": "SolanaRpc facade + all 53 method functions",
|
|
455
|
+
"./grpc": "GrpcTransport + Geyser parser",
|
|
456
|
+
"./das": "DasClient + 11 DAS method functions",
|
|
457
|
+
"./websocket": "WsClient + subscription types",
|
|
458
|
+
"./utils": "Helpers + endpoint resolution"
|
|
1086
459
|
}
|
|
1087
460
|
```
|
|
1088
461
|
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
| Browser | Minimum Version | Notes |
|
|
1092
|
-
|---------|----------------|-------|
|
|
1093
|
-
| Chrome | 90+ | Full support |
|
|
1094
|
-
| Firefox | 88+ | Full support |
|
|
1095
|
-
| Safari | 14+ | WebSocket compression may be limited |
|
|
1096
|
-
| Edge | 90+ | Full support |
|
|
1097
|
-
|
|
1098
|
-
---
|
|
1099
|
-
|
|
1100
|
-
## Migration Guide
|
|
1101
|
-
|
|
1102
|
-
### From v1.x to v2.x
|
|
1103
|
-
|
|
1104
|
-
Version 2.0 introduces breaking changes for improved performance and type safety.
|
|
462
|
+
Import examples:
|
|
1105
463
|
|
|
1106
|
-
|
|
464
|
+
```ts
|
|
465
|
+
// Full SDK
|
|
466
|
+
import { SynapseClient } from '@oobe-protocol-labs/synapse-client-sdk';
|
|
1107
467
|
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
const client = new SynapseClient('https://endpoint.com', 'api-key');
|
|
468
|
+
// Types only (zero runtime)
|
|
469
|
+
import type { Pubkey, Signature, AccountInfo } from '@oobe-protocol-labs/synapse-client-sdk/core/types';
|
|
1111
470
|
|
|
1112
|
-
//
|
|
1113
|
-
|
|
1114
|
-
endpoint: 'https://endpoint.com',
|
|
1115
|
-
apiKey: 'api-key',
|
|
1116
|
-
});
|
|
1117
|
-
```
|
|
1118
|
-
|
|
1119
|
-
#### 2. RPC Method Calls
|
|
471
|
+
// Individual RPC method (tree-shakeable)
|
|
472
|
+
import { getBalance } from '@oobe-protocol-labs/synapse-client-sdk/rpc';
|
|
1120
473
|
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
const balance = await client.getBalance('address');
|
|
1124
|
-
const accountInfo = await client.getAccountInfo('address');
|
|
1125
|
-
|
|
1126
|
-
// v2.x
|
|
1127
|
-
const balance = await client.call('getBalance', ['address']);
|
|
1128
|
-
const accountInfo = await client.call('getAccountInfo', ['address', { encoding: 'jsonParsed' }]);
|
|
1129
|
-
|
|
1130
|
-
// Or use SolanaRpcMethods wrapper
|
|
1131
|
-
import { SolanaRpcMethods } from '@synapse/client-sdk/methods';
|
|
1132
|
-
const rpc = new SolanaRpcMethods(client);
|
|
1133
|
-
const balance = await rpc.getBalance('address');
|
|
1134
|
-
const accountInfo = await rpc.getAccountInfo('address', { encoding: 'jsonParsed' });
|
|
1135
|
-
```
|
|
1136
|
-
|
|
1137
|
-
#### 3. Error Handling
|
|
1138
|
-
|
|
1139
|
-
```typescript
|
|
1140
|
-
// v1.x
|
|
1141
|
-
catch (error) {
|
|
1142
|
-
if (error.code === -32602) {
|
|
1143
|
-
// Handle validation error
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
// v2.x
|
|
1148
|
-
import { SynapseError, ValidationError, NetworkError } from '@synapse/client-sdk';
|
|
1149
|
-
|
|
1150
|
-
catch (error) {
|
|
1151
|
-
if (error instanceof ValidationError) {
|
|
1152
|
-
console.error('Validation error:', error.field, error.message);
|
|
1153
|
-
} else if (error instanceof NetworkError) {
|
|
1154
|
-
console.error('Network error:', error.statusCode, error.message);
|
|
1155
|
-
} else if (error instanceof SynapseError) {
|
|
1156
|
-
console.error('Synapse error:', error.code, error.message);
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
```
|
|
1160
|
-
|
|
1161
|
-
#### 4. WebSocket Subscriptions
|
|
1162
|
-
|
|
1163
|
-
```typescript
|
|
1164
|
-
// v1.x
|
|
1165
|
-
ws.accountSubscribe('address', (data) => {
|
|
1166
|
-
console.log(data);
|
|
1167
|
-
});
|
|
1168
|
-
|
|
1169
|
-
// v2.x
|
|
1170
|
-
const subId = await ws.accountSubscribe(
|
|
1171
|
-
'address',
|
|
1172
|
-
(data) => {
|
|
1173
|
-
console.log(data);
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
commitment: 'confirmed',
|
|
1177
|
-
encoding: 'jsonParsed',
|
|
1178
|
-
}
|
|
1179
|
-
);
|
|
1180
|
-
|
|
1181
|
-
// Remember to unsubscribe
|
|
1182
|
-
await ws.accountUnsubscribe(subId);
|
|
474
|
+
// WebSocket only
|
|
475
|
+
import { WsClient } from '@oobe-protocol-labs/synapse-client-sdk/websocket';
|
|
1183
476
|
```
|
|
1184
477
|
|
|
1185
478
|
---
|
|
1186
479
|
|
|
1187
|
-
##
|
|
480
|
+
## Documentation
|
|
1188
481
|
|
|
1189
|
-
|
|
482
|
+
| Resource | Location |
|
|
483
|
+
|----------|----------|
|
|
484
|
+
| TypeDoc API reference | `docs/` (HTML, auto-generated) |
|
|
485
|
+
| Changelog | [CHANGELOG.md](./CHANGELOG.md) |
|
|
486
|
+
| Contributing guide | [CONTRIBUTING.md](./CONTRIBUTING.md) |
|
|
487
|
+
| AI skill guides | `src/ai/skills/` (10 markdown files) |
|
|
488
|
+
| Example scripts | `examples/` |
|
|
1190
489
|
|
|
1191
|
-
|
|
490
|
+
Skill guides (in `src/ai/skills/`):
|
|
1192
491
|
|
|
1193
|
-
|
|
492
|
+
| File | Topic |
|
|
493
|
+
|------|-------|
|
|
494
|
+
| `01-langchain-tools.md` | Creating and using LangChain tools |
|
|
495
|
+
| `02-gateway-sessions.md` | Session lifecycle and management |
|
|
496
|
+
| `03-pricing-metering.md` | Pricing tiers and metering |
|
|
497
|
+
| `04-response-attestation.md` | Response integrity and attestation |
|
|
498
|
+
| `05-tool-marketplace.md` | Listing and discovering tools |
|
|
499
|
+
| `06-x402-seller-paywall.md` | Seller-side x402 integration |
|
|
500
|
+
| `07-x402-buyer-client.md` | Buyer-side x402 integration |
|
|
501
|
+
| `08-full-gateway-orchestration.md` | End-to-end gateway orchestration |
|
|
502
|
+
| `09-events-observability.md` | Event system and observability |
|
|
1194
503
|
|
|
1195
|
-
|
|
1196
|
-
```typescript
|
|
1197
|
-
const stats = client.getStats();
|
|
1198
|
-
console.log('Average latency:', stats.averageLatency);
|
|
1199
|
-
console.log('Cache hit rate:', stats.cacheHitRate);
|
|
1200
|
-
console.log('Pending requests:', stats.pendingRequests);
|
|
1201
|
-
```
|
|
1202
|
-
|
|
1203
|
-
**Solutions:**
|
|
1204
|
-
- Enable caching for read operations
|
|
1205
|
-
- Use batch operations instead of sequential calls
|
|
1206
|
-
- Check network connectivity to RPC endpoint
|
|
1207
|
-
- Use multiple endpoints with load balancing
|
|
1208
|
-
- Verify endpoint proximity (use regional endpoints)
|
|
1209
|
-
|
|
1210
|
-
#### 2. Connection Errors
|
|
1211
|
-
|
|
1212
|
-
**Symptoms:** `NetworkError` or connection timeouts
|
|
504
|
+
To regenerate the API reference:
|
|
1213
505
|
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
client.on('error', (error) => {
|
|
1217
|
-
console.error('Connection error:', error);
|
|
1218
|
-
});
|
|
1219
|
-
|
|
1220
|
-
client.on('endpoint-rotate', ({ reason }) => {
|
|
1221
|
-
console.log('Endpoint rotation reason:', reason);
|
|
1222
|
-
});
|
|
1223
|
-
```
|
|
1224
|
-
|
|
1225
|
-
**Solutions:**
|
|
1226
|
-
- Verify endpoint URL and API key
|
|
1227
|
-
- Check firewall/proxy settings
|
|
1228
|
-
- Implement retry logic with exponential backoff
|
|
1229
|
-
- Use circuit breaker for automatic fallback
|
|
1230
|
-
- Test endpoint health manually
|
|
1231
|
-
|
|
1232
|
-
#### 3. Memory Leaks
|
|
1233
|
-
|
|
1234
|
-
**Symptoms:** Increasing memory usage over time
|
|
1235
|
-
|
|
1236
|
-
**Diagnosis:**
|
|
1237
|
-
```typescript
|
|
1238
|
-
setInterval(() => {
|
|
1239
|
-
const used = process.memoryUsage();
|
|
1240
|
-
console.log('Memory usage:', {
|
|
1241
|
-
rss: (used.rss / 1024 / 1024).toFixed(2) + ' MB',
|
|
1242
|
-
heapTotal: (used.heapTotal / 1024 / 1024).toFixed(2) + ' MB',
|
|
1243
|
-
heapUsed: (used.heapUsed / 1024 / 1024).toFixed(2) + ' MB',
|
|
1244
|
-
});
|
|
1245
|
-
}, 30000);
|
|
1246
|
-
```
|
|
1247
|
-
|
|
1248
|
-
**Solutions:**
|
|
1249
|
-
- Call `client.destroy()` when done
|
|
1250
|
-
- Unsubscribe from WebSocket subscriptions
|
|
1251
|
-
- Clear caches periodically: `client.clearCache()`
|
|
1252
|
-
- Remove event listeners when not needed
|
|
1253
|
-
- Use `--max-old-space-size` flag to increase heap limit
|
|
1254
|
-
|
|
1255
|
-
#### 4. WebSocket Disconnections
|
|
1256
|
-
|
|
1257
|
-
**Symptoms:** Frequent WebSocket disconnects
|
|
1258
|
-
|
|
1259
|
-
**Diagnosis:**
|
|
1260
|
-
```typescript
|
|
1261
|
-
wsClient.on('disconnected', ({ code, reason }) => {
|
|
1262
|
-
console.log('Disconnect code:', code);
|
|
1263
|
-
console.log('Disconnect reason:', reason);
|
|
1264
|
-
});
|
|
1265
|
-
|
|
1266
|
-
wsClient.on('reconnecting', ({ attempt, maxAttempts }) => {
|
|
1267
|
-
console.log(`Reconnect attempt ${attempt}/${maxAttempts}`);
|
|
1268
|
-
});
|
|
1269
|
-
```
|
|
1270
|
-
|
|
1271
|
-
**Solutions:**
|
|
1272
|
-
- Reduce heartbeat interval for faster detection
|
|
1273
|
-
- Increase `maxReconnectAttempts`
|
|
1274
|
-
- Check network stability
|
|
1275
|
-
- Use resilient subscriptions
|
|
1276
|
-
- Implement fallback to HTTP polling
|
|
1277
|
-
|
|
1278
|
-
#### 5. Rate Limiting
|
|
1279
|
-
|
|
1280
|
-
**Symptoms:** 429 Too Many Requests errors
|
|
1281
|
-
|
|
1282
|
-
**Diagnosis:**
|
|
1283
|
-
```typescript
|
|
1284
|
-
client.on('error', (error) => {
|
|
1285
|
-
if (error.code === 429) {
|
|
1286
|
-
console.error('Rate limit exceeded');
|
|
1287
|
-
}
|
|
1288
|
-
});
|
|
506
|
+
```bash
|
|
507
|
+
pnpm docs
|
|
1289
508
|
```
|
|
1290
509
|
|
|
1291
|
-
|
|
1292
|
-
- Implement request throttling
|
|
1293
|
-
- Use caching to reduce API calls
|
|
1294
|
-
- Batch operations when possible
|
|
1295
|
-
- Upgrade API plan for higher limits
|
|
1296
|
-
- Implement exponential backoff on rate limit errors
|
|
1297
|
-
|
|
1298
|
-
### Debug Mode
|
|
1299
|
-
|
|
1300
|
-
Enable debug logging for detailed insights:
|
|
1301
|
-
|
|
1302
|
-
```typescript
|
|
1303
|
-
const client = new SynapseClient({
|
|
1304
|
-
endpoint: process.env.SYNAPSE_ENDPOINT!,
|
|
1305
|
-
apiKey: process.env.SYNAPSE_API_KEY,
|
|
1306
|
-
debug: true, // Enable debug logs
|
|
1307
|
-
});
|
|
510
|
+
---
|
|
1308
511
|
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
512
|
+
## Source Map
|
|
513
|
+
|
|
514
|
+
```
|
|
515
|
+
src/
|
|
516
|
+
index.ts Main entry point, barrel exports
|
|
517
|
+
core/
|
|
518
|
+
types.ts Branded types, RPC wire types
|
|
519
|
+
errors.ts Error hierarchy
|
|
520
|
+
transport.ts HttpTransport (JSON-RPC)
|
|
521
|
+
client.ts SynapseClient orchestrator
|
|
522
|
+
rpc/
|
|
523
|
+
solana-rpc.ts SolanaRpc facade (53 methods)
|
|
524
|
+
methods/ One file per RPC method (53 files)
|
|
525
|
+
das/
|
|
526
|
+
types.ts DAS type definitions
|
|
527
|
+
client.ts DasClient facade (11 methods)
|
|
528
|
+
methods/ One file per DAS method (11 files)
|
|
529
|
+
websocket/
|
|
530
|
+
types.ts Subscription and notification types
|
|
531
|
+
client.ts WsClient (6 subscription methods)
|
|
532
|
+
grpc/
|
|
533
|
+
types.ts gRPC transport types
|
|
534
|
+
transport.ts GrpcTransport class
|
|
535
|
+
parser/
|
|
536
|
+
types.ts Geyser protobuf types
|
|
537
|
+
programs.ts Known-program registry (80+)
|
|
538
|
+
decoder.ts Low-level stream decoders
|
|
539
|
+
geyser-parser.ts GeyserParser high-level class
|
|
540
|
+
ai/
|
|
541
|
+
tools/
|
|
542
|
+
zod/ Zod schemas for 53 RPC methods
|
|
543
|
+
protocols/
|
|
544
|
+
shared.ts Protocol infrastructure
|
|
545
|
+
jupiter/ Jupiter DEX (21 methods)
|
|
546
|
+
raydium/ Raydium DEX (16 methods)
|
|
547
|
+
metaplex/ Metaplex NFT (12 methods)
|
|
548
|
+
gateway/
|
|
549
|
+
types.ts Gateway type definitions
|
|
550
|
+
session.ts AgentSession
|
|
551
|
+
pricing.ts PricingEngine
|
|
552
|
+
validator.ts ResponseValidator
|
|
553
|
+
marketplace.ts ToolMarketplace
|
|
554
|
+
index.ts AgentGateway
|
|
555
|
+
x402/
|
|
556
|
+
types.ts x402 protocol types
|
|
557
|
+
paywall.ts Seller-side paywall
|
|
558
|
+
client.ts Buyer-side client
|
|
559
|
+
facilitator.ts Settlement verification
|
|
560
|
+
registry.ts Known facilitators
|
|
561
|
+
skills/ 10 markdown skill guides
|
|
562
|
+
utils/
|
|
563
|
+
helpers.ts lamportsToSol, sleep, chunk, retry
|
|
564
|
+
synapse.ts Endpoint registry, auto-select
|
|
1315
565
|
```
|
|
1316
566
|
|
|
1317
567
|
---
|
|
1318
568
|
|
|
1319
569
|
## Contributing
|
|
1320
570
|
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
### Development Setup
|
|
1324
|
-
|
|
1325
|
-
```bash
|
|
1326
|
-
# Clone repository
|
|
1327
|
-
git clone https://github.com/CryptoFamilyNFT/synapse.git
|
|
1328
|
-
cd synapse/packages/synapse-client-sdk
|
|
1329
|
-
|
|
1330
|
-
# Install dependencies
|
|
1331
|
-
pnpm install
|
|
1332
|
-
|
|
1333
|
-
# Build project
|
|
1334
|
-
pnpm build
|
|
1335
|
-
|
|
1336
|
-
# Run tests
|
|
1337
|
-
pnpm test
|
|
1338
|
-
|
|
1339
|
-
# Run linter
|
|
1340
|
-
pnpm lint
|
|
1341
|
-
|
|
1342
|
-
# Type check
|
|
1343
|
-
pnpm type-check
|
|
1344
|
-
```
|
|
1345
|
-
|
|
1346
|
-
### Guidelines
|
|
1347
|
-
|
|
1348
|
-
1. **Code Style:** Follow TypeScript best practices and existing code style
|
|
1349
|
-
2. **Testing:** Add tests for new features (`pnpm test`)
|
|
1350
|
-
3. **Documentation:** Update relevant README files
|
|
1351
|
-
4. **Type Safety:** Ensure full TypeScript coverage
|
|
1352
|
-
5. **Performance:** Benchmark changes if applicable (`pnpm benchmark`)
|
|
1353
|
-
6. **Commit Messages:** Use conventional commits format
|
|
1354
|
-
|
|
1355
|
-
### Pull Request Process
|
|
1356
|
-
|
|
1357
|
-
1. Fork the repository
|
|
1358
|
-
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
|
|
1359
|
-
3. Make your changes
|
|
1360
|
-
4. Add tests and documentation
|
|
1361
|
-
5. Run tests and linter (`pnpm test && pnpm lint`)
|
|
1362
|
-
6. Commit your changes (`git commit -m 'feat: add amazing feature'`)
|
|
1363
|
-
7. Push to branch (`git push origin feature/amazing-feature`)
|
|
1364
|
-
8. Open a Pull Request
|
|
571
|
+
See [CONTRIBUTING.md](./CONTRIBUTING.md) for the branching strategy, commit conventions, and development setup.
|
|
1365
572
|
|
|
1366
573
|
---
|
|
1367
574
|
|
|
1368
575
|
## License
|
|
1369
576
|
|
|
1370
|
-
MIT
|
|
1371
|
-
|
|
1372
|
-
Copyright (c) 2024 CryptoFamilyNFT
|
|
1373
|
-
|
|
1374
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
1375
|
-
|
|
1376
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1377
|
-
|
|
1378
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1379
|
-
|
|
1380
|
-
---
|
|
1381
|
-
|
|
1382
|
-
## Support
|
|
1383
|
-
|
|
1384
|
-
- **Documentation:** [https://docs.synapse.com](https://docs.synapse.com)
|
|
1385
|
-
- **GitHub Issues:** [https://github.com/CryptoFamilyNFT/synapse/issues](https://github.com/CryptoFamilyNFT/synapse/issues)
|
|
1386
|
-
- **Discord:** [https://discord.gg/synapse](https://discord.gg/synapse)
|
|
1387
|
-
- **Email:** support@synapse.com
|
|
1388
|
-
|
|
1389
|
-
---
|
|
1390
|
-
|
|
1391
|
-
**Synapse Client SDK** - Enterprise-grade Solana development toolkit
|
|
577
|
+
MIT -- see [LICENSE](./LICENSE).
|
|
1392
578
|
|
|
1393
|
-
|
|
579
|
+
Copyright (c) OOBE Protocol Labs -- [oobeprotocol.ai](https://oobeprotocol.ai)
|