Identity

Sign Blockchain Transactions

Sign transactions and messages according to the EIP-191 or EIP-712 standard.


Signing a blockchain message

You can sign arbitrary messages for Identity accounts according to the EIP-191 standard.


const response = await fetch( 'https://api.utiliti.ai/wallets/' + wallet_address + '/signature', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-API-key': '<YOUR_API_KEY_HERE>', }, body: JSON.stringify({ message: 'Hello World', }), } )

You can also sign typed data according to the EIP-712 standard.


const response = await fetch( 'https://api.utiliti.ai/wallets/' + wallet_address + '/signature', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-API-key': '<YOUR_API_KEY_HERE>', }, body: JSON.stringify({ data: { types: { EIP712Domain: [ { name: 'name', type: 'string' }, { name: 'version', type: 'string' }, { name: 'chainId', type: 'uint256' }, { name: 'verifyingContract', type: 'address' }, ], Person: [ { name: 'name', type: 'string' }, { name: 'wallet', type: 'string' }, ], }, primaryType: 'Person', domain: { name: 'Person Signature Test', version: '1', chainId: 1, verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC', }, message: { name: 'User', wallet: 'User Wallet' }, }, }), } )