Request testnet tokens for your wallet.
Creates an instance of CircleDeveloperControlledWalletsClient.
API key, entity secret, optional baseUrl.
Sign a delegate action from a specific developer-controlled wallet.
NOTE: This endpoint is only available for NEAR and NEAR-TESTNET.
Sign the EIP-191 message from a specified developer-controlled wallet. Please note that not all the Dapps currently support Smart Contract Account (SCA), the difference between EOA and SCA can be found in the account types guide, and you can check the list of Dapps that support SCA: https://eip1271.io/.
Sign a transaction from a specific developer-controlled wallet.
NOTE: This endpoint is only available for the following chains: SOL
, SOL-DEVNET
, NEAR
, NEAR-TESTNET
, EVM
, EVM-TESTNET
.
Each chain defines its own standard, please refer to Signing APIs doc.
Sign the EIP-712 typed structured data from a specified developer-controlled wallet. Please note that not all the Dapps currently support Smart Contract Account (SCA), the difference between EOA and SCA can be found in the account types guide, and you can check the list of Dapps that support SCA: https://eip1271.io/.
const response = await client.signTypedData({
walletId: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
data: '{ "types": { "Data": [{ "name": "dummy", "type": "string" }],}, "domain": { "name": "Test", "chainId": 1337 }, "primaryType": "Data", "message": { "dummy": "dummy" }}',
memo: 'Transfer USDC to Sam',
})
console.log(response.data?.signature)
Fetches details of a specific token given its unique identifier.
Every token in your network of wallets has a UUID associated with it, regardless of whether it's already recognized or was added as a monitored token.
Accelerates a specified transaction from a developer-controlled wallet.
Additional gas fees may be incurred.
Cancels a specified transaction from a developer-controlled wallet. Gas fees may still be incurred.
This is a best-effort operation, it won't be effective if the original transaction has already been processed by the blockchain.
Creates a transaction which executes a smart contract. ABI parameters must be passed in the request. Related transactions may be submitted as a batch transaction in a single call.
const response = await client.createContractExecutionTransaction({
amount: '0.01',
abiFunctionSignature: 'burn(uint256)',
contractAddress: '0xa51c9c604b79a0fadbfed35dd576ca1bce71da0a',
walletId: 'a635d679-4207-4e37-b12e-766afb9b3892',
fee: {
type: 'level',
config: {
feeLevel: 'HIGH',
},
},
})
console.log(response.data)
Initiates an on-chain digital asset transfer from a specified developer-controlled wallet.
const response = await client.createTransaction({
amount: ['0.01'],
destinationAddress: '0xa51c9c604b79a0fadbfed35dd576ca1bce71da0a',
tokenId: '738c8a6d-8896-46d1-b2cb-083600c1c69b',
walletId: 'a635d679-4207-4e37-b12e-766afb9b3892',
fee: {
type: 'level',
config: {
feeLevel: 'HIGH',
},
},
})
console.log(response.data)
Estimates gas fees that will be incurred for a contract execution transaction, given its ABI parameters and blockchain.
Estimates gas fees that will be incurred for a transfer transaction; given its amount, blockchain, and token.
Retrieves info for a single transaction using it's unique identifier.
Confirms that a specified address is valid for a given token on a certain blockchain.
Create a developer controlled wallet set.
Update the name of the wallet set using its ID.
Generates a new developer-controlled wallet or batch of wallets within a wallet set, specifying blockchain and wallet name.
Derives an EOA wallet using the address of the specified wallet and blockchain. If the target wallet already exists, its metadata will be updated with the provided metadata.
NOTE: This endpoint is only available for EVM-based wallets.
Retrieve an existing wallet using its unique identifier.
Fetches the info for all NFTs stored in a single developer-controlled wallet, using the wallets unique identifier.
Retrieves a list of all wallets that fit the specified parameters, including native balances and USDC/EURC token balances if specified.
NOTE: Balances update automatically with transfers or via the Get token balance for a wallet for accuracy.
Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier.
Retrieves a list of all wallets that fit the specified parameters.
Optional
input: ListWalletsInputUpdate information for a specific wallet using its unique identifier.
Create a notification subscription by configuring an endpoint to receive notifications.
For details, see the Notification Flows guide.
Get the public key and algorithm used to digitally sign webhook notifications. Verifying the digital signature ensures the notification came from Circle. In the headers of each webhook, you can find
X-Circle-Signature
: a header containing the digital signature generated by Circle.X-Circle-Key-Id
: a header containing the UUID. This is will be used as the ID
as URL parameter to retrieve the relevant public key.
A class-based client for Circle's Developer Controlled Wallets. All operations are available as class methods.
Example