Skip to content
Orillion logo
Soramitsu logo

Submitting a contribution

Protocol: HTTP

EncodingJSON

Endpoint/data/api/v1/contribution-management/contribution

MethodPOST

Parameters: —

Input/request structure:

Show
json5
'string'
'string'

Output/response structure:

Show
json5
{
  status: {
    code: 0, //integer($int32)
    name: 'string',
    message: 'string'
  },
  data: {
    tokenIds: [
      {
        definitionId: 'Id_range#domain', //IP/telephone number/IMEI
        accountId: 'user@peerId'
      }
    ],
    rewarded: 0 //integer($int32)
  }
}
{
  status: {
    code: 0, //integer($int32)
    name: 'string',
    message: 'string'
  },
  data: {
    tokenIds: [
      {
        definitionId: 'Id_range#domain', //IP/telephone number/IMEI
        accountId: 'user@peerId'
      }
    ],
    rewarded: 0 //integer($int32)
  }
}

Responses

Response CodeDescription
200Contribution has been submitted and its transaction data has been retrieved successfully.
400Invalid transaction.
500Internal server error.