Transactions
Transactions are either deposits, transfer and contract interactions carried out on Bitpowr
Transactions are digital representation of value received or sent on chain or off chain.
Bitpowr currently has three types of transactions:
- Deposit: These are simply transactions received in to any address you generated via Bitpowr. In double ledger accounting these are recorded as credits.
- Transfer: These are transactions signed and sent out via Bitpowr to any address. These are recorded as debits and blockchain network fees are always present.
- Contract Interactions: These are transactions that's related to contract interactions. It can either be a deposit or transfer base on the smart contract you are interacting with. However blockchain fees are always charged.
Sending Transaction
curl --request POST \
--url https://developers.bitpowr.com/api/v1/transactions \
-H 'content-type: application/json'
-H 'authorization: Bearer <encodedToken>'
-d '{
"walletId": "e3455-15b5-46ad-84de-34555",
"assetType": "TUSDC_ETH",
"cryptoAmount": "9",
"fromAddress": "0x40fa00fe4a0a655240fede3149e9ea55118241e2",
"address": "0x1180a4c0c71b5eb0256edcffcc3389f1f085c502",
"gasLimit": "40000",
"gasPrice": "2000000009",
"fee": "0.00018",
"description": "Testing Here"
}'
curl --request POST \
--url https://developers.bitpowr.com/api/v1/transactions \
-H 'content-type: application/json'
-H 'authorization: Bearer <encodedToken>'
-d '{
"walletId": "8648a91-2413-43dc-a139-667432b8ff",
"assetType": "BTC",
"cryptoAmount": "0.00001",
"address": "2MtQsUJqJz4wiY5WnBXPwrsMbJxm9QsT14i",
"description": "Testing Here",
"fee": "0.00000547"
}'
curl --request POST \
--url https://developers.bitpowr.com/api/v1/transactions \
-H 'content-type: application/json'
-H 'authorization: Bearer <encodedToken>'
-d '{
"walletId": "22efe5-1d0a-41ae-9d7f-b22374062",
"assetType": "TUSDC_TRON",
"cryptoAmount": "1",
"fromAddress": "TBnmBzyZs3v5ubdKXNN617Tu4PeLhzLrH7",
"address": "TD6szM7KukDqCv1FSAm451HDttregBadiU",
"description": "Testing Here"
}'
curl --request POST \
--url https://developers.bitpowr.com/api/v1/transactions \
-H 'content-type: application/json'
-H 'authorization: Bearer <encodedToken>'
-d '{
"walletId": "0722efe5-1d0a-41ae-9d7f-b22374062f81",
"assetType": "TUSDC_TRON",
"cryptoAmount": "4000",
"fromAddress": "TBnmBzyZs3v5ubdKXNN617Tu4PeLhzLrH7",
"address": "TKXXPkbtfn9uvwtxf2hdSUQJ2772prGenm",
"spenderAddress": "TKXXPkbtfn9uvwtxf2hdSUQJ2772prGenm",
"description": "Approve TKXXPkbtfn9uvwtxf2hdSUQJ2772prGenm",
"operation": "approve"
}'
curl --request POST \
--url https://developers.bitpowr.com/api/v1/transactions \
-H 'content-type: application/json'
-H 'authorization: Bearer <encodedToken>'
-d '{
"walletId": "4522efe5-1d0a-41ae-9d7f-b22374063332",
"assetType": "BTC",
"cryptoAmount": "0.0001",
"fromUtxo": [{
"address": "mufcbAEjrTpC2cyJXSvQFK6wVFgjTxXBbh",
"txHash": "d2e4d67d78ddc17639f16bb54045fb52519a523fb5e27a2fa97b0e1438c62146",
"index":0
}, {
"address": "tb1q93vcd7m4vsr8mvxpxdptr4735fzha9gvxhs7hz",
"txHash": "cbeb2d1872b867e6b35784a8827886fd99b9813d6f3a22ac4c2e05c80cc5596c",
"index": 1
}],
"address": "tb1q4qs2y4ex67sxgqfyydqysa78506awdw6nafdfj",
"description": "Testing Here",
"fee": "0.000001547",
"changeAddress": "tb1q93vcd7m4vsr8mvxpxdptr4735fzha9gvxhs7hz"
}'
API Reference
You can view the API reference for working with Transactions
Updated 16 days ago