Skip to content

I can add a new solana network, but if its not one of the defaulfs, Then i cannot sign and send transactions with it, I wanted to add eclipse #408

Open
@collinpowell

Description

@collinpowell

Describe the bug

// Define the custom network
const eclipse = defineChain({
id: "EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
caipNetworkId: 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1',
chainNamespace: 'solana',
name: 'Eclipse',
nativeCurrency: {
decimals: 9,
name: 'Ether',
symbol: 'ETH',
},
rpcUrls: {
default: {
http: [process.env.NEXT_ECLIPSE_RPC_URL ?? "https://mainnetbeta-rpc.eclipse.xyz"],
webSocket: ['WS_RPC_URL'],
},
},
blockExplorers: {
default: { name: 'Explorer', url: 'https://eclipsescan.xyz' },
},
contracts: {
// Add the contracts here
}
})

Putting a foreign chain id give me "invalid chain id" when i try to sign a transaction

When i did this i now get, invalid blockhash

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions