Skip to content

A reference implementation of msgport fee estimation spec

Notifications You must be signed in to change notification settings

ringecosystem/msgport-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

24ec0f1 · Oct 23, 2024
Oct 14, 2024
Oct 23, 2024
May 24, 2024
May 29, 2024
Jun 18, 2024
May 24, 2024
May 24, 2024
May 24, 2024

Repository files navigation

Msgport API

Usage

https://apidog.msgport.xyz/

  • Estimate fee of ormp

    POST /v2/fee_with_options HTTP/1.1
    Content-Type: application/json
    Host: api.msgport.xyz
    
    {
      "fromChainId": 701,
      "fromAddress": "0x65be094765731f394bc6d9df53bdf3376f1fc8b0",
      "toChainId": 2494104990,
      "toAddress": "0x65be094765731f394bc6d9df53bdf3376f1fc8b0",
      "message": "0x1841a477000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000002b496f19a420c02490db859fefeccd71edc2c046000000000000000000000000dc0c760c0fb4672d06088515f6446a71df0c64c1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a4e80f03d0000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000e7578598aac020abfb918f33a20fad5b71d670b4000000000000000000000000092e19c46c9daab7824393f1cd9c22f5bea135600000000000000000000000004ca75992d2750bec270731a72dfdede6b9e71cc700000000000000000000000088a39b052d477cfde47600a7c9950a441ce61cb40000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000000000000000000000000000000000018e98a317b100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000c29dcb1f12a1618262ef9fba673b77140adc02d60000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001488a39B052d477CfdE47600a7C9950a441Ce61cb400000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "ormp": {
        "refundAddress": "0x570FCA2c6f902949dBb90664Be5680fEc94A84f6"
      }
    }
    
  • Estimate fee of multiport

    POST /v2/fee_with_options HTTP/1.1
    Content-Type: application/json
    Host: api.msgport.xyz
    
    {
      "fromChainId": 701,
      "fromAddress": "0x65be094765731f394bc6d9df53bdf3376f1fc8b0",
      "toChainId": 2494104990,
      "toAddress": "0x65be094765731f394bc6d9df53bdf3376f1fc8b0",
      "message": "0x1841a477000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000002b496f19a420c02490db859fefeccd71edc2c046000000000000000000000000dc0c760c0fb4672d06088515f6446a71df0c64c1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a4e80f03d0000000000000000000000000000000000000000000000000000000000000002e000000000000000000000000e7578598aac020abfb918f33a20fad5b71d670b4000000000000000000000000092e19c46c9daab7824393f1cd9c22f5bea135600000000000000000000000004ca75992d2750bec270731a72dfdede6b9e71cc700000000000000000000000088a39b052d477cfde47600a7c9950a441ce61cb40000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000000000000000000000000000000000018e98a317b100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000c29dcb1f12a1618262ef9fba673b77140adc02d60000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001488a39B052d477CfdE47600a7C9950a441Ce61cb400000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "multi": ["ormp"],
      "ormp": {
        "refundAddress": "0x570FCA2c6f902949dBb90664Be5680fEc94A84f6"
      }
    }