Download

arrow_down

Developer sercices

arrow_down

More

arrow_down
activityactivityactivityactivity
  • themelight
  • languageIcon

  • menu
Skip to Content
EnDocs
Connect Wallet
Quick Start

Integrate Bitget Wallet

Get Eth Provider

const provider = window.bitkeep.ethereum

Connect the wallet

window.bitkeep.ethereum.enable()

Construct Transaction Data

const transactionParameters = { nonce: '0x00', // ignored by Bitkeep gasPrice: '0x09184e72a000', // customizable by user during Bitkeep confirmation. gas: '0x2710', // customizable by user during Bitkeep confirmation. to: '0x0000000000000000000000000000000000000000', // Required except during contract publications. from: Provider.selectedAddress, // must match user's active address. value: '0x00', // Only required to send ether to the recipient from the initiating external account. data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057', // Optional, but used for defining smart contract creation and interaction. chainId: '0x3', // Used to prevent transaction reuse across blockchains. Auto-filled by Bitkeep. };

Sign and BoardCast

const txHash = await Provider.request({ method: 'eth_sendTransaction', params: [transactionParameters], });
Last updated on