Generate Signature
Request to generate a signature with the key. This process does not broadcast anything on-chain, this is just an off-chain signature request.
Dfns is compatible with any blockchain that uses a supported key format. If Dfns doesn’t officially integrate with a blockchain, you can use hash signing to generate the signatures to interact with the chain.
If you were using the deprecated POST /wallets/{walletId}/signatures endpoint, then you should now use this one. See the deprecation notice to get more information about how to change your code. TL,DR: from a wallet you can obtain the key as wallet.signingKey.id.
Authentication
✅ Organization User (CustomerEmployee)✅ Delegated User (
EndUser)✅ Service Account
Required Permissions
Keys:Signatures:Create: Always required.Authorizations
Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows
User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows
Path Parameters
The key to sign with.
1 - 64Body
- Hash
- Message
- Transaction
- EIP-191 personal_sign Message
- EIP-712 TypedData
- EIP-7702 Authorization
- SNIP-12 TypedData
- PSBT
- BIP-322
- SignDocDirect
- SignerPayload
- CIP-8
- Dfns Smart Account Transaction
- Stellar Fee Bump Transaction
All cryptographic scheme support hash signing. Different blockchains will apply different hash functions to compute the hash.
Hash 32-byte hash in hex encoded format.
^(0x)?[0-9a-fA-F]{64}$Required when signing with a Schnorr key. Specify the merkle root for tweaking the signing key, or the empty string "" to tweak with the default merkle root.
^(0x)?([0-9A-Fa-f]{64})?$Algorand, AlgorandTestnet, Aptos, AptosTestnet, ArbitrumOne, ArbitrumSepolia, ArcTestnet, AvalancheC, AvalancheCFuji, BabylonGenesis, BabylonTestnet5, Base, BaseSepolia, Berachain, BerachainBepolia, Bitcoin, BitcoinSignet, BitcoinTestnet3, BitcoinTestnet4, BitcoinCash, Bob, BobSepolia, Bsc, BscTestnet, Canton, CantonTestnet, Cardano, CardanoPreprod, Concordium, ConcordiumTestnet, Celo, CeloAlfajores, Codex, CodexSepolia, CosmosHub4, CosmosIcsTestnet, Dogecoin, DogecoinTestnet, Ethereum, EthereumClassic, EthereumClassicMordor, EthereumSepolia, EthereumHolesky, EthereumHoodi, FantomOpera, FantomTestnet, FlareC, FlareCCoston2, FlowEvm, FlowEvmTestnet, Hedera, HederaTestnet, Ink, InkSepolia, InternetComputer, Ion, IonTestnet, Iota, IotaTestnet, Kaspa, Kusama, KusamaAssetHub, Litecoin, LitecoinTestnet, Near, NearTestnet, Optimism, OptimismSepolia, Origyn, Plasma, PlasmaTestnet, Plume, PlumeSepolia, Paseo, PaseoAssetHub, Polkadot, PolkadotAssetHub, Polygon, PolygonAmoy, Polymesh, PolymeshTestnet, Race, RaceSepolia, SeiAtlantic2, SeiPacific1, Solana, SolanaDevnet, Starknet, StarknetSepolia, Stellar, StellarTestnet, Sui, SuiTestnet, Tezos, TezosGhostnet, TezosShadownet, Tempo, TempoModerato, Tsc, TscTestnet1, Ton, TonTestnet, Tron, TronNile, Westend, WestendAssetHub, Xdc, XdcApothem, XLayer, XLayerSepolia, XrpLedger, XrpLedgerTestnet Algorand, Aptos, Bitcoin, BitcoinCash, Canton, Cardano, Concordium, Cosmos, Evm, Hedera, Icp, Iota, Kaspa, Near, Polymesh, Solana, Starknet, Stellar, Substrate, Sui, Tezos, Ton, Tron, Xrpl Response
Success
Signature id.
1 - 64^sig-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"sig-4sfvl-f4iha-umighfi3hk4t54dr"
Key id.
1 - 64^key-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"key-01snl-t56gb-j8tsok0vn802p80i"
The user who initiated the request.
All cryptographic scheme support hash signing. Different blockchains will apply different hash functions to compute the hash.
- Hash
- Message
- Transaction
- EIP-191 personal_sign Message
- EIP-712 TypedData
- EIP-7702 Authorization
- SNIP-12 TypedData
- PSBT
- BIP-322
- SignDocDirect
- SignerPayload
- CIP-8
- Dfns Smart Account Transaction
- Stellar Fee Bump Transaction
Pending, Executing, Signed, Confirmed, Failed, Rejected Algorand, AlgorandTestnet, Aptos, AptosTestnet, ArbitrumOne, ArbitrumSepolia, ArcTestnet, AvalancheC, AvalancheCFuji, BabylonGenesis, BabylonTestnet5, Base, BaseSepolia, Berachain, BerachainBepolia, Bitcoin, BitcoinSignet, BitcoinTestnet3, BitcoinTestnet4, BitcoinCash, Bob, BobSepolia, Bsc, BscTestnet, Canton, CantonTestnet, Cardano, CardanoPreprod, Concordium, ConcordiumTestnet, Celo, CeloAlfajores, Codex, CodexSepolia, CosmosHub4, CosmosIcsTestnet, Dogecoin, DogecoinTestnet, Ethereum, EthereumClassic, EthereumClassicMordor, EthereumSepolia, EthereumHolesky, EthereumHoodi, FantomOpera, FantomTestnet, FlareC, FlareCCoston2, FlowEvm, FlowEvmTestnet, Hedera, HederaTestnet, Ink, InkSepolia, InternetComputer, Ion, IonTestnet, Iota, IotaTestnet, Kaspa, Kusama, KusamaAssetHub, Litecoin, LitecoinTestnet, Near, NearTestnet, Optimism, OptimismSepolia, Origyn, Plasma, PlasmaTestnet, Plume, PlumeSepolia, Paseo, PaseoAssetHub, Polkadot, PolkadotAssetHub, Polygon, PolygonAmoy, Polymesh, PolymeshTestnet, Race, RaceSepolia, SeiAtlantic2, SeiPacific1, Solana, SolanaDevnet, Starknet, StarknetSepolia, Stellar, StellarTestnet, Sui, SuiTestnet, Tezos, TezosGhostnet, TezosShadownet, Tempo, TempoModerato, Tsc, TscTestnet1, Ton, TonTestnet, Tron, TronNile, Westend, WestendAssetHub, Xdc, XdcApothem, XLayer, XLayerSepolia, XrpLedger, XrpLedgerTestnet 1 - 64^ap-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"ap-2a9in-tt2a1-983lho480p35ejd0"
Structured representation of the data used to construct the signature (e.g. nonce, gas parameters). Shape is blockchain specific.