Back to Wallet Selection
Thirdweb SDK

Thirdweb Integration

Connect using Thirdweb's ConnectButton and bridge the Account to cifer-sdk with a custom signer adapter.

Step 1

Initialize SDK

SDK initialization is the same regardless of wallet type. Auto-discovery fetches chain configs from the Blackbox API.

const sdk = await createCiferSdk({
blackboxUrl: 'https://cifer-blackbox.ternoa.dev:3010',
});
Step 2

Connect via Thirdweb

Thirdweb provides a ConnectButton component. After connection, use useActiveAccount() to get the Account, then build a custom signer adapter.

// Custom signer adapter
function createThirdwebSigner(account: Account) {
return {
async getAddress() { return account.address },
async signMessage(msg) {
return account.signMessage({ message: msg })
},
};
}

Console Output

Waiting for SDK init...