Send publish request for a set of policy rules
POST {{baseUrl}}/tap/publish
Send publish request of set of policy rules and returns the response.
Note: These endpoints are currently in beta and might be subject to changes.
If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Idempotency-Key
|
string | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | |
Content-Type
|
string | ||
Accept
|
string |
RESPONSES
status Created
{
"status": "AWAITING_QUORUM",
"rules": [
{
"type": "TRANSFER",
"action": "2-TIER",
"asset": "<string>",
"amountCurrency": "EUR",
"amountScope": "SINGLE_TX",
"amount": "<string>",
"periodSec": "<number>",
"operator": "<string>",
"operators": {
"wildcard": "*",
"users": [
"<string>",
"<string>"
],
"usersGroups": [
"<string>",
"<string>"
],
"services": [
"<string>",
"<string>"
]
},
"transactionType": "TRANSFER",
"designatedSigner": "<string>",
"designatedSigners": {
"users": [
"<string>",
"<string>"
],
"usersGroups": [
"<string>",
"<string>"
]
},
"srcType": "FIAT_ACCOUNT",
"srcSubType": "CONTRACT",
"srcId": "<string>",
"src": {
"ids": [
[
"<string>"
],
[
"<string>"
]
]
},
"dstType": "UNMANAGED",
"dstSubType": "EXCHANGETEST",
"dstId": "<string>",
"dst": {
"ids": [
[
"<string>"
],
[
"<string>"
]
Curl curl -X POST 'https://api.fireblocks.io/v1/tap/publish' -H 'Idempotency-Key: <string>' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"rules":[{"type":"TRANSFER","action":"BLOCK","asset":"\u003cstring\u003e","amountCurrency":"NATIVE","amountScope":"SINGLE_TX","amount":"\u003cstring\u003e","periodSec":"\u003cnumber\u003e","operator":"\u003cstring\u003e","operators":{"wildcard":"*","users":["\u003cstring\u003e","\u003cstring\u003e"],"usersGroups":["\u003cstring\u003e","\u003cstring\u003e"],"services":["\u003cstring\u003e","\u003cstring\u003e"]},"transactionType":"REDEEM","designatedSigner":"\u003cstring\u003e","designatedSigners":{"users":["\u003cstring\u003e","\u003cstring\u003e"],"usersGroups":["\u003cstring\u003e","\u003cstring\u003e"]},"srcType":"VAULT","srcSubType":"CONTRACT","srcId":"\u003cstring\u003e","src":{"ids":[["\u003cstring\u003e"],["\u003cstring\u003e"]]},"dstType":"NETWORK_CONNECTION","dstSubType":"INTERNAL","dstId":"\u003cstring\u003e","dst":{"ids":[["\u003cstring\u003e"],["\u003cstring\u003e"]]},"dstAddressType":"ONE_TIME","authorizers":["\u003cstring\u003e","\u003cstring\u003e"],"authorizersCount":"\u003cnumber\u003e","authorizationGroups":{"logic":"AND","allowOperatorAsAuthorizer":"\u003cboolean\u003e","groups":[{"users":["\u003cstring\u003e","\u003cstring\u003e"],"usersGroups":["\u003cstring\u003e","\u003cstring\u003e"],"th":"\u003cnumber\u003e"},{"users":["\u003cstring\u003e","\u003cstring\u003e"],"usersGroups":["\u003cstring\u003e","\u003cstring\u003e"],"th":"\u003cnumber\u003e"}]},"amountAggregation":{"operators":"PER_SINGLE_MATCH","srcTransferPeers":"PER_SINGLE_MATCH","dstTransferPeers":"ACROSS_ALL_MATCHES"},"rawMessageSigning":{"algorithm":"\u003cstring\u003e","derivationPath":{"path":["\u003cnumber\u003e","\u003cnumber\u003e"]}},"applyForApprove":"\u003cboolean\u003e","applyForTypedMessage":"\u003cboolean\u003e","externalDescriptor":"\u003cstring\u003e"},{"type":"TRANSFER","action":"ALLOW","asset":"\u003cstring\u003e","amountCurrency":"USD","amountScope":"SINGLE_TX","amount":"\u003cstring\u003e","periodSec":"\u003cnumber\u003e","operator":"\u003cstring\u003e","operators":{"wildcard":"*","users":["\u003cstring\u003e","\u003cstring\u003e"],"usersGroups":["\u003cstring\u003e","\u003cstring\u003e"],"services":["\u003cstring\u003e","\u003cstring\u003e"]},"transactionType":"CONTRACT_CALL","designatedSigner":"\u003cstring\u003e","designatedSigners":{"users":["\u003cstring\u003e","\u003cstring\u003e"],"usersGroups":["\u003cstring\u003e","\u003cstring\u003e"]},"srcType":"*","srcSubType":"EXCHANGETEST","srcId":"\u003cstring\u003e","src":{"ids":[["\u003cstring\u003e"],["\u003cstring\u003e"]]},"dstType":"VAULT","dstSubType":"INTERNAL","dstId":"\u003cstring\u003e","dst":{"ids":[["\u003cstring\u003e"],["\u003cstring\u003e"]]},"dstAddressType":"ONE_TIME","authorizers":["\u003cstring\u003e","\u003cstring\u003e"],"authorizersCount":"\u003cnumber\u003e","authorizationGroups":{"logic":"OR","allowOperatorAsAuthorizer":"\u003cboolean\u003e","groups":[{"users":["\u003cstring\u003e","\u003cstring\u003e"],"usersGroups":["\u003cstring\u003e","\u003cstring\u003e"],"th":"\u003cnumber\u003e"},{"users":["\u003cstring\u003e","\u003cstring\u003e"],"usersGroups":["\u003cstring\u003e","\u003cstring\u003e"],"th":"\u003cnumber\u003e"}]},"amountAggregation":{"operators":"PER_SINGLE_MATCH","srcTransferPeers":"ACROSS_ALL_MATCHES","dstTransferPeers":"ACROSS_ALL_MATCHES"},"rawMessageSigning":{"algorithm":"\u003cstring\u003e","derivationPath":{"path":["\u003cnumber\u003e","\u003cnumber\u003e"]}},"applyForApprove":"\u003cboolean\u003e","applyForTypedMessage":"\u003cboolean\u003e","externalDescriptor":"\u003cstring\u003e"}]}' ENDPOINTS |