Associations Transactions API
Description of endpoints to construct Associations Transactions on the DeSo blockchain
User Associations
Create user association
POST
/api/v0/user-associations/create
Creates a create user association transaction. The transaction needs to be signed and submitted through /api/v0/submit-transaction
before changes come into effect.
Implementation in backend
Request Body
Name | Type | Description |
---|---|---|
TransactorPublicKeyBase58Check* | String | The public key of the user creating the transaction |
TargetUserPublicKeyBase58Check* | String | The public key of the user to which the association is referencing |
AppPublicKeyBase58Check | String | The public key of the application on which the association is being created |
AssociationType* | String | The association type |
AssociationValue* | String | The association value |
ExtraData | map[String]String | Any additional arbitrary key-value data to store with the association |
MinFeeRateNanosPerKB* | uint64 | The minimum fee rate (in nanos) per kb |
TransactionFees | []TransactionFee | Array of objects that define additional outputs that need to be added to this transaction |
Delete user association
POST
/api/v0/user-associations/delete
Creates a delete user association transaction. The transaction needs to be signed and submitted through /api/v0/submit-transaction
before changes come into effect.
Implementation in backend
Request Body
Name | Type | Description |
---|---|---|
TransactorPublicKeyBase58Check* | String | The public key of the user creating the transaction |
AssociationID* | String | The identifier of the association to delete |
ExtraData | map[String]String | Any additional arbitrary key-value data to include with the transaction |
MinFeeRateNanosPerKB* | uint64 | The minimum fee rate (in nanos) per kb |
TransactionFees | []TransactionFee | Array of objects that define additional outputs that need to be added to this transaction |
Post Associations
Create post association
POST
/api/v0/post-associations/create
Creates a create post association transaction. The transaction needs to be signed and submitted through /api/v0/submit-transaction
before changes come into effect.
Implementation in backend
Request Body
Name | Type | Description |
---|---|---|
TransactorPublicKeyBase58Check* | String | The public key of the user creating the transaction |
PostHashHex* | String | The identifier of the post to which the association is referencing |
AppPublicKeyBase58Check | String | The public key of the application on which the association is being created |
AssociationType* | String | The association type |
AssociationValue* | String | The association value |
ExtraData | map[String]String | Any additional arbitrary key-value data to store with the association |
MinFeeRateNanosPerKB* | uint64 | The minimum fee rate (in nanos) per kb |
TransactionFees | []TransactionFee | Array of objects that define additional outputs that need to be added to this transaction |
Delete post association
POST
/api/v0/post-associations/delete
Creates a delete post association transaction. The transaction needs to be signed and submitted through /api/v0/submit-transaction
before changes come into effect.
Implementation in backend
Request Body
Name | Type | Description |
---|---|---|
TransactorPublicKeyBase58Check* | String | The public key of the user creating the transaction |
AssociationID | String | The identifier of the association being deleted |
ExtraData | map[String]String | Any additional arbitrary key-value data to include with the transaction |
MinFeeRateNanosPerKB* | uint64 | The minimum fee rate (in nanos) per kb |
TransactionFees | []TransactionFee | Array of objects that define additional outputs that need to be added to this transaction |
Last updated