API methods

Lists all assets

GET https://jam-api.usepicnic.com/assets/list

Generates transaction

POST https://jam-api.usepicnic.com/transaction/generate

Request Body

NameTypeDescription

chainId*

number

Chain ID

walletAddress*

string

Wallet address

inputAllocation*

object

[

{

assetId: string,

amountStr: string

},

...

]

outputAllocation*

object

[

{

assetId: string,

fraction: number

},

...

]

{
  "address": string,
  "transactionData": string,
  "transactionDetails": {
    "steps": [
      {
        "stepAddress": string,
        "stepEncodedCall": string,
        "storeOperations": [
          {
            "storeOpType": number,
            "storeNumber": number,
            "secondaryStoreNumber": number,
            "offset": number,
            "fraction": number
          },
          ...
        ]
      }
    ],
    "stores": [
      string|number,
      ...
    ]
  }
}

Last updated