SSP Wallet
  • Welcome to SSP Wallet
  • Getting Started with SSP Wallet
    • Change Language
    • Switch Chain
    • Wallet
      • Retrieve SSP Wallet Seed Phrase
      • Create a New Wallet
      • Restore Wallet Using Seed Phrase
      • Create Multiple Wallet
      • Delete a Wallet
      • Retrieving Your Wallet Address
    • Transaction
      • Buy / Sell
      • Swap
      • Send
      • Receive
      • Export Transactions
      • View Transactions
    • Token
      • Add Token to Main Screen
      • Remove Token from Main Screen
    • Custom Tokens
      • Add Custom Token
      • Delete Custom Token
    • Contacts
      • Create New Contact
      • Edit Contact
      • Delete Contact
    • Logout Your SSP Wallet
  • GETTING STARTED WITH SSP KEY
    • Install SSP Key
    • Create a New Key and Syncing to SSP Wallet
    • Restore Key Using Seed Phrase and Syncing to SSP Wallet
    • Retrieving Your SSP Key Seed Phrase
    • Using Your SSP Key For Syncing
  • GETTING STARTED WITH SSP RELAY DEVELOPMENT
    • Overview
    • Environment Requirements
    • Project Installation
    • Project Structure 0verview
    • Project Folders
      • Config
      • Helpers
      • Logs
      • Src
        • apiServices
        • lib
        • services
        • routes.ts
          • GET /v1/sync
          • GET /v1/action
          • POST /v1/sync
          • POST /v1/token
          • POST /v1/action
          • GET /v1/rates
          • GET /v1/networkfees
          • POST /v1/ticket
          • GET /v1/tokeninfo
          • GET /v1/services
          • POST /v1/sign
      • Tests
        • unit
  • GETTING STARTED WITH SSP WALLET DEVELOPMENT
    • Overview
    • Environment Requirements
    • Project Installation
    • SSP Wallet API
    • Project Structure Overview
    • Project Folders
      • Public
        • scripts
      • Patches
      • Src
        • assets
        • components
        • contexts
        • hooks
        • lib
        • pages
        • storage
        • store
        • translations
      • Tests
        • lib
  • GETTING STARTED WITH SSP KEY DEVELOPMENT
    • Overview
    • Environment Requirements
      • For Mac Users Only
    • Project Installation
    • Project Structure Overview
    • Project Folders
      • Types
      • Src
        • assets
        • components
        • contexts
        • hooks
        • lib
        • navigators
        • screens
        • storage
        • store
        • themes
        • translations
      • Tests
        • lib
Powered by GitBook
On this page
  1. GETTING STARTED WITH SSP RELAY DEVELOPMENT
  2. Project Folders
  3. Src
  4. routes.ts

POST /v1/action

Post action using data specified in the request body

POST /v1/action

Headers

Name
Value

Content-Type

application/json

Body

Parameter
Description

chain

chain where the id is associated

path

path value

wkIdentity

wallet key value

action

action value

payload

payload value

utxos

utxos values

{
  "action": "tx",
  "payload": "0400008085202f89016bf2b6449710be3300c3cc4a9ad2d4db7e88cea56168c46a16278b496e3415eb0000000092000047304402206802b39e235731e1798c226b5230b6730596309a91d8293b804817e0d8e25718022038fa7d3ded97d25be0303755040a1ccf9ec04bf7081f8bfb94588bc5b11a380101475221022a316c22acf16a9108b57f48802143cc0c0ac4b8fc360a87568e1794e51558752103749c957461154dfca921d0872ba3c9ac85d98c92e4a34fdac32bd03597fbd2f252aeffffffff0310270000000000001976a91473562bc6a1db9dc6effebc1ef4379942feb3cf2c88ac305e01000000000017a9147a29650fb76a20926553c0ab0e60a509919d5698870000000000000000066a047465737400000000121f1c000000000000000000000000",
  "chain": "flux",
  "path": "0-0",
  "wkIdentity": "bc1q4q6nhujzlpll9e2mkjlqddmdfyvh4a89vqatsk0ju8jwt2vghf9sykaw0c",
  "utxos": [
    {
      "txid": "eb15346e498b27166ac46861a5ce887edbd4d29a4accc30033be109744b6f26b",
      "vout": 0,
      "scriptPubKey": "a9147a29650fb76a20926553c0ab0e60a509919d569887",
      "satoshis": "100000",
      "confirmations": 136988,
      "coinbase": false
    }
  ]
}

Request

curl --location 'https://relay.sspwallet.io/v1/action' \
--header 'Content-Type: application/json' \
--data '{
  "action": "tx",
  "payload": "0400008085202f89016bf2b6449710be3300c3cc4a9ad2d4db7e88cea56168c46a16278b496e3415eb0000000092000047304402206802b39e235731e1798c226b5230b6730596309a91d8293b804817e0d8e25718022038fa7d3ded97d25be0303755040a1ccf9ec04bf7081f8bfb94588bc5b11a380101475221022a316c22acf16a9108b57f48802143cc0c0ac4b8fc360a87568e1794e51558752103749c957461154dfca921d0872ba3c9ac85d98c92e4a34fdac32bd03597fbd2f252aeffffffff0310270000000000001976a91473562bc6a1db9dc6effebc1ef4379942feb3cf2c88ac305e01000000000017a9147a29650fb76a20926553c0ab0e60a509919d5698870000000000000000066a047465737400000000121f1c000000000000000000000000",
  "chain": "flux",
  "path": "0-0",
  "wkIdentity": "bc1q4q6nhujzlpll9e2mkjlqddmdfyvh4a89vqatsk0ju8jwt2vghf9sykaw0c",
  "utxos": [
    {
      "txid": "eb15346e498b27166ac46861a5ce887edbd4d29a4accc30033be109744b6f26b",
      "vout": 0,
      "scriptPubKey": "a9147a29650fb76a20926553c0ab0e60a509919d569887",
      "satoshis": "100000",
      "confirmations": 136988,
      "coinbase": false
    }
  ]
}'

Response

Parameter
Description

chain

chain where the id is associated

path

path value

wkIdentity

wallet key value

action

action value

payload

payload value

utxos

utxos values

expireAt

expiration timestamp

createdAt

created timestamp

{
    "status": "success",
    "data": {
        "chain": "flux",
        "path": "0-0",
        "wkIdentity": "bc1q4q6nhujzlpll9e2mkjlqddmdfyvh4a89vqatsk0ju8jwt2vghf9sykaw0c",
        "action": "tx",
        "payload": "0400008085202f89016bf2b6449710be3300c3cc4a9ad2d4db7e88cea56168c46a16278b496e3415eb0000000092000047304402206802b39e235731e1798c226b5230b6730596309a91d8293b804817e0d8e25718022038fa7d3ded97d25be0303755040a1ccf9ec04bf7081f8bfb94588bc5b11a380101475221022a316c22acf16a9108b57f48802143cc0c0ac4b8fc360a87568e1794e51558752103749c957461154dfca921d0872ba3c9ac85d98c92e4a34fdac32bd03597fbd2f252aeffffffff0310270000000000001976a91473562bc6a1db9dc6effebc1ef4379942feb3cf2c88ac305e01000000000017a9147a29650fb76a20926553c0ab0e60a509919d5698870000000000000000066a047465737400000000121f1c000000000000000000000000",
        "utxos": [
            {
                "txid": "eb15346e498b27166ac46861a5ce887edbd4d29a4accc30033be109744b6f26b",
                "vout": 0,
                "scriptPubKey": "a9147a29650fb76a20926553c0ab0e60a509919d569887",
                "satoshis": "100000",
                "confirmations": 136988,
                "coinbase": false
            }
        ],
        "createdAt": "2025-02-19T11:42:40.922Z",
        "expireAt": "2025-02-19T11:57:40.922Z"
    }
}
Bad Request
PreviousPOST /v1/tokenNextGET /v1/rates

Last updated 3 months ago