CCC Docs
    Preparing search index...
    • Requests the accounts from the provider.

      Parameters

      • request: { method: "ckb_requestAccounts"; data?: undefined }

        The request object.

        • method: "ckb_requestAccounts"

          The method name.

        • Optionaldata?: undefined

          The optional method parameters.

      Returns Promise<string>

      A promise that resolves to an array of account addresses.

    • Signs a message with the personal account.

      Parameters

      • request: { method: "ckb_signMessage"; data: { message: string } }

        The request object.

        • method: "ckb_signMessage"

          The method name.

        • data: { message: string }

          The method parameters.

      Returns Promise<`0x${string}`>

      A promise that resolves to the signed message.

    • Gets the identity of the signer.

      Parameters

      • request: { method: "ckb_getPublicKey" }

        The request object.

        • method: "ckb_getPublicKey"

          The method name.

      Returns Promise<string>

      A promise that resolves to the signed message.

    • Get network.

      Parameters

      • request: { method: "ckb_switchNetwork"; data: string }

        The request object.

        • method: "ckb_switchNetwork"

          The method name.

        • data: string

          The method parameters.

      Returns Promise<{ type: string; network: string }>

      A promise that resolves to the signed message.

    • Signs transaction .

      Parameters

      • request: { method: "ckb_signTransaction"; data: { txSkeleton: JsonRpcTransaction } }

        The request object.

        • method: "ckb_signTransaction"

          The method name.

        • data: { txSkeleton: JsonRpcTransaction }

          The method parameters.

      Returns Promise<Transaction>

      A promise that resolves to the signed message.