Offramp API Integration.
Offramp Quotation
Quotation - Fiat
1 min
tab examples url https stg api onmeta in v1 quote sell name quotation by fiat amount method post request pathparameters queryparameters headerparameters kind required name x api key type string children description api key from dashboard bodydataparameters kind required name selltokensymbol type string description sell token symbol example matic kind required name selltokenaddress type string children description smart contract address for sell token mentioned above kind required name chainid type number children description blockchain id example 80001 for polygon testnet kind required name fiatcurrency type string children description currency symbol example inr kind required name fiatamount type number children description currency quantity example 100 for inr 100 kind required name senderaddress type string children description wallet address of the sender formdataparameters results languages id jcfit4zs2foobmlbavxlh code n success true n data n t t selltokens 1 234 n t t conversionrate 82 21 n t t transactionfee 3 n t t gasfee 7 000 n t t fiatcurrency inr n fiatamount 100 n t n t error n language 200 customlabel id laaa3vi6kmyeefvs ad8o code n success false n error n code 400 n message bad request n n language 400 customlabel id rcs27gusj0r6pmqfpw3c code n success false n error n code 401 n message unauthorized to access n n language 401 customlabel selectedlanguageid jcfit4zs2foobmlbavxlh examples languages id r9xp0o00tkswwyabmqqtn code curl location request post https stg api onmeta in v1 quote sell n header accept application json n header x api key string n data raw selltokensymbol string selltokenaddress string chainid number fiatcurrency string fiatamount number senderaddress string language curl customlabel id ypbruwf rlrgsquvc r6s code var request require request ; nvar options n method post n url https stg api onmeta in v1 quote sell n headers n accept application json n x api key string n n body selltokensymbol string selltokenaddress string chainid number fiatcurrency string fiatamount number senderaddress string n n ; nrequest options function error response n if error throw new error error ; n console log response body ; n ; n language nodejs customlabel id pcqa2v9ayojwpcib3ji h code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append x api key string ; n nvar raw selltokensymbol string selltokenaddress string chainid number fiatcurrency string fiatamount number senderaddress string ; n nvar requestoptions n method post n headers myheaders n body raw n redirect follow n ; n nfetch https stg api onmeta in v1 quote sell requestoptions n then response response text n then result console log result n catch error console log error error ; language javascript customlabel id bveup59x3jarjtsuimmkw code import requests n nurl https stg api onmeta in v1 quote sell n npayload selltokensymbol string selltokenaddress string chainid number fiatcurrency string fiatamount number senderaddress string nheaders n accept application json n x api key string n n nresponse requests request post url headers headers data payload n nprint response text n language python customlabel id agmzvfesl0pj12ut6k1oo code require uri nrequire net http n nurl uri https stg api onmeta in v1 quote sell n nhttps net http new url host url port nhttps use ssl true n nrequest net http post new url nrequest accept application json nrequest x api key string nrequest body selltokensymbol string selltokenaddress string chainid number fiatcurrency string fiatamount number senderaddress string n nresponse https request request nputs response read body n language ruby customlabel selectedlanguageid r9xp0o00tkswwyabmqqtn description offramp quotation by fiat amount currentnewparameter label body parameter value bodydataparameters sample request body { "selltokensymbol" "matic", "selltokenaddress" "0x9c3c9283d3e44854697cd22d3faa240cfb032889", "chainid" 80001, "fiatcurrency" "inr", "fiatamount" 100, "senderaddress" "0xcdf10bc7a1fae391ff18f4c220ace912547971cc" }